Skip to content

Commit 482e63c

Browse files
committed
Updated Travis CI configuration
- added PHP 7.2 builds - removed HHVM builds - updated legacy deps - removed IRC notifications
1 parent 3939020 commit 482e63c

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

.travis.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ language: php
55
cache:
66
directories:
77
- $HOME/.composer/cache
8-
- vendor
98

109
env:
1110
global:
1211
- COMPOSER_ARGS="--no-interaction"
13-
- COVERAGE_DEPS="satooshi/php-coveralls"
14-
- LEGACY_DEPS="phpunit/phpunit doctrine/instantiator"
12+
- COVERAGE_DEPS="php-coveralls/php-coveralls"
1513

1614
matrix:
1715
include:
@@ -21,7 +19,7 @@ matrix:
2119
- php: 5.6
2220
env:
2321
- DEPS=locked
24-
- TEST_COVERAGE=true
22+
- LEGACY_DEPS="phpunit/phpunit"
2523
- php: 5.6
2624
env:
2725
- DEPS=latest
@@ -31,7 +29,7 @@ matrix:
3129
- php: 7
3230
env:
3331
- DEPS=locked
34-
- CS_CHECK=true
32+
- LEGACY_DEPS="phpunit/phpunit"
3533
- php: 7
3634
env:
3735
- DEPS=latest
@@ -41,40 +39,38 @@ matrix:
4139
- php: 7.1
4240
env:
4341
- DEPS=locked
42+
- CS_CHECK=true
43+
- TEST_COVERAGE=true
4444
- php: 7.1
4545
env:
4646
- DEPS=latest
47-
- php: hhvm
47+
- php: 7.2
4848
env:
4949
- DEPS=lowest
50-
- php: hhvm
50+
- php: 7.2
5151
env:
5252
- DEPS=locked
53-
- php: hhvm
53+
- php: 7.2
5454
env:
5555
- DEPS=latest
56-
allow_failures:
57-
- php: hhvm
58-
59-
notifications:
60-
irc: "irc.freenode.org#apigility-dev"
61-
email: false
6256

6357
before_install:
6458
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
65-
- travis_retry composer self-update
6659

6760
install:
6861
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
69-
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
62+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
7063
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
7164
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
7265
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
73-
- composer show
66+
- stty cols 120 && composer show
7467

7568
script:
7669
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
7770
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
7871

7972
after_script:
80-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
73+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi
74+
75+
notifications:
76+
email: false

0 commit comments

Comments
 (0)