Skip to content

Commit

Permalink
Require PHP 5.6 + Updated Travis
Browse files Browse the repository at this point in the history
Changes for Travis:
- Added PHP 7.1;
- Removed HHVM;
  • Loading branch information
mcaskill committed Dec 13, 2016
1 parent 0b1a938 commit 18b3ba6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- hhvm
- 7.1
- nightly

env:
Expand All @@ -14,12 +13,10 @@ env:

matrix:
allow_failures:
- php: 7.0
- php: hhvm
- php: nightly

before_script:
## Init composer
## Init Composer
- composer selfupdate --quiet
- composer install -n --dev

Expand All @@ -30,8 +27,8 @@ script:
## Lint PHP Files
- find {src,tests} -name '*.php' -print0 | xargs -0 -n1 -P8 php -l | grep -v '^No syntax errors detected'; test $? -eq 1

## PHP Code Sniffer
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/phpcs -ps --colors --standard=phpcs.xml src/; fi
## Run PHP Code Sniffer
- ./vendor/bin/phpcs --config-set ignore_warnings_on_exit 1;./vendor/bin/phpcs -ps --colors --standard=phpcs.xml src/

## Run PHPUnit Tests
- phpunit --configuration ./tests/phpunit.xml --coverage-text --coverage-clover build/logs/clover.xml
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
},
"require": {
"php": ">=5.5.0",
"php": ">=5.6.0",
"psr/log": "^1.0",
"psr/http-message": "^1.0",
"locomotivemtl/charcoal-config": "~0.6"
Expand Down

0 comments on commit 18b3ba6

Please sign in to comment.