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 ...@@ -3,16 +3,16 @@ sudo: required
language: php language: php
addons: addons:
mariadb: '10.1' mariadb: 10.1
cache: cache:
directories: directories:
- $HOME/.composer/cache - "$HOME/.composer/cache"
php: php:
- 5.5
- 5.6 - 5.6
- 7.0 - 7.0
- 7.1
- nightly - nightly
- hhvm - hhvm
...@@ -25,6 +25,10 @@ matrix: ...@@ -25,6 +25,10 @@ matrix:
notifications: notifications:
on_success: never on_success: never
on_failure: always 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: git:
depth: 1 depth: 1
...@@ -36,11 +40,9 @@ before_script: ...@@ -36,11 +40,9 @@ before_script:
- mysql -u root -e 'create database telegrambot; use telegrambot; source structure.sql;' - mysql -u root -e 'create database telegrambot; use telegrambot; source structure.sql;'
script: script:
- ./vendor/bin/phpcs --standard=phpcs.xml -snp --encoding=utf-8 src/ --report-width=150 - composer check-code
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml; - if [ "$TRAVIS_PHP_VERSION" == "7.1" ] ; then composer test-cov; else composer test; fi
else ./vendor/bin/phpunit;
fi
after_script: 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 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 @@ ...@@ -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/). The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] ## [Unreleased]
### Added
- Travis CI webhook for Support Bot.
### Changed ### Changed
- All links point to new organisation repo. - All links point to new organisation repo.
- Drop PHP 5.5, add PHP 7.1 support.
## [0.42.0] - 2017-04-09 ## [0.42.0] - 2017-04-09
### Added ### Added
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
[![Latest Stable Version](https://img.shields.io/packagist/v/Longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot) [![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) [![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) [![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) [![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 ...@@ -156,12 +156,12 @@ Edit your project's `composer.json` file to require
`longman/telegram-bot`. `longman/telegram-bot`.
Create *composer.json* file Create *composer.json* file
```js ```json
{ {
"name": "yourproject/yourproject", "name": "yourproject/yourproject",
"type": "project", "type": "project",
"require": { "require": {
"php": ">=5.5.0", "php": ">=5.6",
"longman/telegram-bot": "*" "longman/telegram-bot": "*"
} }
} }
...@@ -172,7 +172,7 @@ and run `composer update` ...@@ -172,7 +172,7 @@ and run `composer update`
run this command in your command line: run this command in your command line:
``` ```bash
composer require longman/telegram-bot composer require longman/telegram-bot
``` ```
......
...@@ -18,13 +18,17 @@ ...@@ -18,13 +18,17 @@
} }
], ],
"require": { "require": {
"php": ">=5.5.0", "php": ">=5.6",
"ext-pdo": "*", "ext-pdo": "*",
"ext-curl": "*", "ext-curl": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"monolog/monolog": "^1.19", "monolog/monolog": "^1.19",
"guzzlehttp/guzzle": "~6.0" "guzzlehttp/guzzle": "~6.0"
}, },
"require-dev": {
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "~2.5"
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Longman\\TelegramBot\\": "src/" "Longman\\TelegramBot\\": "src/"
...@@ -35,8 +39,15 @@ ...@@ -35,8 +39,15 @@
"Longman\\TelegramBot\\Tests\\Unit\\": "tests/unit" "Longman\\TelegramBot\\Tests\\Unit\\": "tests/unit"
} }
}, },
"require-dev": { "scripts": {
"phpunit/phpunit": "~4.8", "check-code": [
"squizlabs/php_codesniffer": "~2.5" "./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