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

Commit 2f30038

Browse files
update travis config
1 parent a5b4457 commit 2f30038

File tree

1 file changed

+44
-21
lines changed

1 file changed

+44
-21
lines changed

.travis.yml

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,49 +15,72 @@ cache:
1515

1616
env:
1717
global:
18-
- SITE_URL: https://zendframework.github.io/zend-dom
19-
- GH_USER_NAME: "Matthew Weier O'Phinney"
20-
- GH_USER_EMAIL: matthew@weierophinney.net
21-
- GH_REF: github.com/zendframework/zend-dom.git
18+
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
19+
- SITE_URL="https://zendframework.github.io/zend-dom"
20+
- GH_USER_NAME="Matthew Weier O'Phinney"
21+
- GH_USER_EMAIL="matthew@weierophinney.net"
22+
- GH_REF="github.com/zendframework/zend-dom.git"
2223
- secure: "s5/0nwMgJT6tDIAdPNbQhre95SCbs3LZf6o6rj4aX39LWyBCWFwI2VuRoh+2NQdhmAiwtE5YNmXeuL27MAQHCy6vfQkkE4cNmQa/vFwBr+ewUKjjCRrdAPoymq6D6G4Txk3Mu45juWb/O6fXZjWWUPMSwfC9CZX+J4rZzvQS3tnOyKk79gHf3P36dZwvzUe7XDcM98SFQIVCl8CXrNX5aQFcfDozaC+6k+hw4J5cyHKMBKVD0cb4cCKwmiLn9htJU8xOeL5DM9L4+zXroM3fmNpDPS3iXjhqgkAHU2c9zmJsf6pl0GLERYXpo8nd3Y/I9D5BCf7Qs5EgypEqJi41WhZ7OKZL7bBgIMP9hNQo5KTfc1Myu6JRzh4E8MwCSV5glMeEbEoX3SGtDcYfORxl2I8lSD5dRo/5E28SieKAVoZrkWHAtXJtRrx7vVOZ7hYvYUo53N7iTdY/7vzBewrbjTdzVUaHe+/S9OIFiLrAoYmlOGdX4b+q6Wly1m4P9i8CVHqDoVgVRA7F/qx3g0EK97HAI6wgiiMPPwWqZFRsGbXmaUHk4Fc/wkwuCjHWpw+2V3H8MTU0nQoU7ew5AFKKvm0d8erINoApGJziLYprcX79G1VzlHPWeCI3qi8j3r/5HQy5amEMCgUy9gyuFkFG/IAx/k9K36TmIjEtvudzt2o="
2324

2425
matrix:
2526
fast_finish: true
2627
include:
27-
- php: 5.5
28+
- php: 5.6
2829
env:
29-
- EXECUTE_CS_CHECK=true
30+
- DEPS=lowest
3031
- php: 5.6
3132
env:
32-
- EXECUTE_TEST_COVERALLS=true
33+
- DEPS=locked
34+
- TEST_COVERAGE=true
3335
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
3436
- PATH="$HOME/.local/bin:$PATH"
37+
- php: 5.6
38+
env:
39+
- DEPS=latest
3540
- php: 7
36-
- php: hhvm
37-
allow_failures:
41+
env:
42+
- DEPS=lowest
3843
- php: 7
44+
env:
45+
- DEPS=locked
46+
- CHECK_CS=true
47+
- php: 7
48+
env:
49+
- DEPS=latest
50+
- php: hhvm
51+
env:
52+
- DEPS=lowest
53+
- php: hhvm
54+
env:
55+
- DEPS=locked
56+
- php: hhvm
57+
env:
58+
- DEPS=latest
59+
allow_failures:
3960
- php: hhvm
4061

4162
notifications:
4263
irc: "irc.freenode.org#zftalk.dev"
4364
email: false
4465

4566
before_install:
46-
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
47-
- composer self-update
48-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
67+
- travis_retry composer self-update
68+
- if [[ $TRAVIS_PHP_VERSION != "hhvm" && $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini ; fi
4969

5070
install:
51-
- travis_retry composer install --no-interaction --ignore-platform-reqs
71+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
72+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
73+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi
74+
- travis_retry composer install $COMPOSER_ARGS
75+
- composer show
5276

5377
script:
54-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
55-
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
56-
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi
57-
- 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
58-
59-
after_success:
60-
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
78+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
79+
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
80+
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then travis_retry curl -sSL https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh | bash ; fi
6181

6282
after_script:
63-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi
83+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi
84+
85+
after_success:
86+
- if [[ $DEPLOY_DOCS == "true" ]]; then ./zf-mkdoc-theme/deploy.sh ; fi

0 commit comments

Comments
 (0)