Skip to content

Commit b3ee543

Browse files
committed
minor #16 add PHP 7.1 and PHP 7.2 build jobs (xabbuh)
This PR was merged into the 2.0.x-dev branch. Discussion ---------- add PHP 7.1 and PHP 7.2 build jobs Commits ------- 7f33568 add PHP 7.1 and PHP 7.2 build jobs
2 parents e88c9b1 + 7f33568 commit b3ee543

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,25 @@ php:
1111
- 5.5
1212
- 5.6
1313
- 7.0
14+
- 7.1
1415
- hhvm
1516

1617
matrix:
1718
fast_finish: true
1819
include:
1920
- php: 5.3
20-
env: deps="low"
21+
dist: precise
22+
env: COMPOSER_OPTIONS="--prefer-lowest --prefer-stable"
23+
- php: 7.2
24+
env: deps="high"
2125

2226
before_install:
2327
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi
2428
- composer self-update
2529

2630
install:
27-
- if [[ "$deps" = "low" ]]; then composer update --prefer-lowest; else composer install; fi
31+
- if [ "$deps" = "high" ]; then composer config minimum-stability dev; fi
32+
- composer update $COMPOSER_OPTIONS
2833

2934
script:
3035
- php validate.php

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">=5.3.0"
15+
"php": "^5.3 || ^7.0"
1616
},
1717
"autoload": {
1818
"psr-4": {

0 commit comments

Comments
 (0)