|
11 | 11 |
|
12 | 12 | env: |
13 | 13 | global: |
| 14 | + - COMPOSER_ARGS="--no-interaction" |
| 15 | + - COVERAGE_DEPS="satooshi/php-coveralls" |
14 | 16 | - SITE_URL=https://zendframework.github.io/zend-expressive |
15 | 17 | - GH_USER_NAME="Matthew Weier O'Phinney" |
16 | 18 | |
|
19 | 21 |
|
20 | 22 | matrix: |
21 | 23 | include: |
22 | | - - php: 5.5 |
| 24 | + - php: 5.6 |
23 | 25 | env: |
24 | | - - EXECUTE_CS_CHECK=true |
| 26 | + - DEPS=lowest |
25 | 27 | - php: 5.6 |
26 | 28 | env: |
27 | | - - EXECUTE_TEST_COVERALLS=true |
| 29 | + - DEPS=locked |
| 30 | + - TEST_COVERAGE=true |
28 | 31 | - DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)" |
29 | 32 | - PATH="$HOME/.local/bin:$PATH" |
| 33 | + - php: 5.6 |
| 34 | + env: |
| 35 | + - DEPS=latest |
| 36 | + - php: 7 |
| 37 | + env: |
| 38 | + - DEPS=lowest |
| 39 | + - php: 7 |
| 40 | + env: |
| 41 | + - DEPS=locked |
| 42 | + - CS_CHECK=true |
30 | 43 | - php: 7 |
| 44 | + env: |
| 45 | + - DEPS=latest |
| 46 | + - php: 7.1 |
| 47 | + env: |
| 48 | + - DEPS=lowest |
| 49 | + - php: 7.1 |
| 50 | + env: |
| 51 | + - DEPS=locked |
| 52 | + - php: 7.1 |
| 53 | + env: |
| 54 | + - DEPS=latest |
| 55 | + - php: hhvm |
| 56 | + env: |
| 57 | + - DEPS=lowest |
| 58 | + - php: hhvm |
| 59 | + env: |
| 60 | + - DEPS=locked |
31 | 61 | - php: hhvm |
| 62 | + env: |
| 63 | + - DEPS=latest |
32 | 64 | allow_failures: |
33 | 65 | - php: hhvm |
34 | 66 |
|
35 | 67 | before_install: |
36 | | - - if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi |
37 | | - - composer self-update |
38 | | - - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls:dev-master ; fi |
| 68 | + - if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi |
| 69 | + - travis_retry composer self-update |
39 | 70 |
|
40 | 71 | install: |
41 | | - - travis_retry composer install --no-interaction |
42 | | - - composer info -i |
| 72 | + - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi |
| 73 | + - if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi |
| 74 | + - if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi |
| 75 | + - travis_retry composer install $COMPOSER_ARGS |
| 76 | + - composer show |
43 | 77 |
|
44 | 78 | script: |
45 | | - - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer test-coverage ; fi |
46 | | - - if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then composer test ; fi |
47 | | - - if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer cs ; fi |
48 | | - - if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer license-check ; fi |
| 79 | + - if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi |
| 80 | + - if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi |
| 81 | + - if [[ $CS_CHECK == 'true' ]]; then composer license-check ; fi |
49 | 82 | - if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi |
50 | 83 |
|
51 | 84 | after_script: |
52 | | - - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer coveralls ; fi |
| 85 | + - if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi |
53 | 86 |
|
54 | 87 | after_success: |
55 | 88 | - if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi |
56 | 89 |
|
57 | 90 | notifications: |
58 | | - email: true |
| 91 | + irc: "irc.freenode.org#zftalk.dev" |
| 92 | + email: false |
0 commit comments