Drop PHP 5.5, add PHP 7.1.

Bump outdated PHPUnit version.
Add Travis CI webhook for Support Bot.
parent 6c3e463e
......@@ -3,16 +3,16 @@ sudo: required
language: php
addons:
mariadb: '10.1'
mariadb: 10.1
cache:
directories:
- $HOME/.composer/cache
- "$HOME/.composer/cache"
php:
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
- hhvm
......@@ -25,6 +25,10 @@ matrix:
notifications:
on_success: never
on_failure: always
webhooks:
on_success: always
urls:
secure: jW1RbSV8TXSL3qa2cNVhlxEGbImrQS5b8FO4xIe/Sg2S2zgXOxJZrui1d/gh6mM3dqjquvCdUkXOYYWL8Mrnbe07utUigwW4qxmsw2XDqobgUl9/yoqejLsUvccV2bbvxhSlVEnGkYox9yOd7pakBW0wLxG4Izw8ML3q+tJWYAypM/x3mRhXBMRuOhLm3cI9MwYogCq82FRBTvwTszuU74EHQE/LgQnlEwfOhBYa1sqD+HHG51H59+a0pBWiAgcROG/vPffNDzCfmgrcpU6Bw/eJjGJcDYNwjvBp90lYHYXofbWtwj0m6QvCuE7HFlG7UXXipEe+trViH9G7DpPwAf5nghEgJNholESq6DVhy+5fBFEiZfcpbhMJWzh807iL8r0Ekx3oUKe67wcOO55s/Hatln5DNq3vuVzfDhIjGkBE4Z44Il1M/n5zY5Rj/zMPpRFs9cI53wynKoFxI7gPNylqnkoztYsFv/yMf1W9moZvWqzQY0qeMLSUZNJ9TpxhETGkM3P12X/jSkBkmoBPEG1Rdq/H2e6T4bQ/K9I9UyBXM3bZ1ybUqqwyi7vQTm6RCVai1P4dgMZ4VyX79dhiGhtwCIIQSrYdqi7sLO0kTw05j0zvdaT2IEATgdnj+OOSxtJrp069OL7spkRg8EEyn6emawnsrNjqJUwksvuz1tY=
git:
depth: 1
......@@ -36,11 +40,9 @@ before_script:
- mysql -u root -e 'create database telegrambot; use telegrambot; source structure.sql;'
script:
- ./vendor/bin/phpcs --standard=phpcs.xml -snp --encoding=utf-8 src/ --report-width=150
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml;
else ./vendor/bin/phpunit;
fi
- composer check-code
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ] ; then composer test-cov; else composer test; fi
after_script:
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then
wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
......@@ -2,8 +2,11 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Added
- Travis CI webhook for Support Bot.
### Changed
- All links point to new organisation repo.
- Drop PHP 5.5, add PHP 7.1 support.
## [0.42.0] - 2017-04-09
### Added
......
......@@ -8,7 +8,7 @@
[![Latest Stable Version](https://img.shields.io/packagist/v/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
[![Total Downloads](https://img.shields.io/packagist/dt/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
[![Downloads Month](https://img.shields.io/packagist/dm/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
[![Minimum PHP Version](http://img.shields.io/badge/php-%3E%3D5.5.0-8892BF.svg)](https://php.net/)
[![Minimum PHP Version](http://img.shields.io/badge/php-%3E%3D5.6-8892BF.svg)](https://php.net/)
[![License](https://img.shields.io/packagist/l/Longman/telegram-bot.svg)](https://github.com/php-telegram-bot/core/LICENSE.md)
......@@ -156,12 +156,12 @@ Edit your project's `composer.json` file to require
`longman/telegram-bot`.
Create *composer.json* file
```js
```json
{
"name": "yourproject/yourproject",
"type": "project",
"require": {
"php": ">=5.5.0",
"php": ">=5.6",
"longman/telegram-bot": "*"
}
}
......@@ -172,7 +172,7 @@ and run `composer update`
run this command in your command line:
```
```bash
composer require longman/telegram-bot
```
......
......@@ -18,13 +18,17 @@
}
],
"require": {
"php": ">=5.5.0",
"php": ">=5.6",
"ext-pdo": "*",
"ext-curl": "*",
"ext-mbstring": "*",
"monolog/monolog": "^1.19",
"guzzlehttp/guzzle": "~6.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "~2.5"
},
"autoload": {
"psr-4": {
"Longman\\TelegramBot\\": "src/"
......@@ -35,8 +39,15 @@
"Longman\\TelegramBot\\Tests\\Unit\\": "tests/unit"
}
},
"require-dev": {
"phpunit/phpunit": "~4.8",
"squizlabs/php_codesniffer": "~2.5"
"scripts": {
"check-code": [
"./vendor/bin/phpcs --standard=phpcs.xml -snp --encoding=utf-8 src/ --report-width=150"
],
"test-cov": [
"./vendor/bin/phpunit --coverage-clover build/logs/clover.xml"
],
"test": [
"./vendor/bin/phpunit"
]
}
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment