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

Commit 226a968

Browse files
committed
Updated travis configuration to be consistent with other packaes
1 parent ae423a4 commit 226a968

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

.travis.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ cache:
1515

1616
env:
1717
global:
18-
- SITE_URL: https://zendframework.github.io/zend-servicemanager
19-
- GH_USER_NAME: "Matthew Weier O'Phinney"
20-
- GH_USER_EMAIL: [email protected]
21-
- GH_REF: github.com/zendframework/zend-servicemanager.git
18+
- COMPOSER_ARGS="--no-interaction"
19+
- COVERAGE_DEPS="satooshi/php-coveralls"
20+
- SITE_URL="https://zendframework.github.io/zend-servicemanager"
21+
- GH_USER_NAME="Matthew Weier O'Phinney"
22+
- GH_USER_EMAIL="[email protected]"
23+
- GH_REF="github.com/zendframework/zend-servicemanager.git"
2224
- secure: "KoLcNj22t668IhAhm5ej6DNf23waoGrZpQ1kmuq5ptTqsXjFjy/cjOJCvWOeRX62Tl2kjc7co9UeK0f91osZ2Wq7HLb+1bIXX5SrB6SfyPUajCQtCtu0xGgEKZfuQwzLWSYoR3tsaD6vqgMjKwwst10d+AyICjdLNu9dHtdu9HpozZtK3kM9+0FwMOiRqFEND2GY05oVYXOrzgu1xNmE1YEGpjKzqqBNpqFOP4W+OnTMRTQcyrlbFzOFvAip7X3GGw9iUSnSzZTnIOWJgMdah8/eFqhrPO8O73faW+/v3ZTxdwupOEZyg7s3TD6+W9rjmN+TgOZEP484PcSlUc6sXA4QM4iL8xthG3bWk8+CDrsnuQmunrXz7T5xUEHs/7B8NuGJ8yT89fMCYGySERKIfCx17+N9kP/848A/+39LE1NIlTxnaPISfm9WMNG67xsEKyJluC/YataPGl0zZ6/7Q7w1oDYvjhsqooUsxKRD2/psd1zrVDJurDa7Ayv/E21u2dIDtbp6w9Zl+he+kwRItMNhtCdzyShqtuY0V/JRmn2lZY2PsfbICRXXAbQnDveNFYz5tE2K40Qm4RWrdZ4cnaLiNJeukdYKVJCFHtZr9rdx1uVeK78Pf5o3rt4S8S1aat35eMZQunc6s4gmeXU5+wIxwXiyOtkdlL3LztSox9s="
2325

2426
matrix:
@@ -53,21 +55,24 @@ notifications:
5355
email: false
5456

5557
before_install:
56-
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
57-
- composer self-update
58-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls:^1.0 ; fi
58+
- travis_retry composer self-update
59+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || true ; fi
5960

6061
install:
61-
- travis_retry composer install --no-interaction
62+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
63+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update $COMPOSER_ARGS --prefer-lowest --prefer-stable ; fi
64+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
65+
- travis_retry composer install $COMPOSER_ARGS
66+
- stty cols 120
67+
- COLUMNS=120 composer show
6268

6369
script:
64-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi
65-
- if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi
66-
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
67-
- 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
68-
69-
after_success:
70-
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
70+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
71+
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
72+
- 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
7173

7274
after_script:
73-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
75+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi
76+
77+
after_success:
78+
- if [[ $DEPLOY_DOCS == "true" ]]; then ./zf-mkdoc-theme/deploy.sh ; fi

0 commit comments

Comments
 (0)