Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 9bf4d79

Browse files
committed
travis update, build lowest, locked and latest, also add php-nightly
1 parent cf3900a commit 9bf4d79

File tree

3 files changed

+1841
-6
lines changed

3 files changed

+1841
-6
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ vendor/
1212
zf-mkdoc-theme/
1313

1414
clover.xml
15-
composer.lock
1615
coveralls-upload.json
1716
phpunit.xml

.travis.yml

+42-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ cache:
1515

1616
env:
1717
global:
18-
- COMPOSER_ARGS="--no-interaction --prefer-source"
18+
- COMPOSER_ARGS="--no-interaction"
19+
- COVERAGE_DEPS="satooshi/php-coveralls"
1920
- LEGACY_DEPS="phpunit/phpunit"
2021
- SITE_URL: https://zendframework.github.io/zend-eventmanager
2122
- GH_USER_NAME: "Matthew Weier O'Phinney"
@@ -27,26 +28,62 @@ matrix:
2728
include:
2829
- php: 5.6
2930
env:
31+
- DEPS=lowest
32+
- php: 5.6
33+
env:
34+
- DEPS=locked
3035
- TEST_COVERAGE=true
3136
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
3237
- PATH="$HOME/.local/bin:$PATH"
38+
- php: 5.6
39+
env:
40+
- DEPS=latest
3341
- php: 7
3442
env:
43+
- DEPS=lowest
44+
- php: 7
45+
env:
46+
- DEPS=locked
3547
- CS_CHECK=true
48+
- php: 7
49+
env:
50+
- DEPS=latest
3651
- php: 7.1
52+
env:
53+
- DEPS=lowest
54+
- php: 7.1
55+
env:
56+
- DEPS=locked
57+
- php: 7.1
58+
env:
59+
- DEPS=latest
60+
- php: nightly
61+
env:
62+
- DEPS=lowest
63+
- php: nightly
64+
env:
65+
- DEPS=locked
66+
- php: nightly
67+
env:
68+
- DEPS=latest
69+
allow_failures:
70+
- php: nightly
3771

3872
notifications:
3973
email: false
4074

4175
before_install:
42-
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
43-
- composer self-update
44-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
76+
- travis_retry composer self-update
77+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini ; fi
4578

4679
install:
4780
- travis_retry composer install $COMPOSER_ARGS
4881
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
49-
- composer info -i
82+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
83+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
84+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
85+
- stty cols 120
86+
- COLUMNS=120 composer show
5087

5188
script:
5289
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi

0 commit comments

Comments
 (0)