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

Commit 5d9a17d

Browse files
stefanotorresiweierophinney
authored andcommitted
update travis config
1 parent 2de03ef commit 5d9a17d

File tree

1 file changed

+67
-21
lines changed

1 file changed

+67
-21
lines changed

.travis.yml

Lines changed: 67 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,100 @@ language: php
55
cache:
66
directories:
77
- $HOME/.composer/cache
8-
- vendor
98
- $HOME/.local
109
- zf-mkdoc-theme
1110

1211
env:
1312
global:
14-
- SITE_URL: https://zendframework.github.io/zend-diactoros
15-
- GH_USER_NAME: "Matthew Weier O'Phinney"
16-
- GH_USER_EMAIL: [email protected]
17-
- GH_REF: github.com/zendframework/zend-diactoros.git
13+
- SITE_URL="https://zendframework.github.io/zend-diactoros"
14+
- GH_USER_NAME="Matthew Weier O'Phinney"
15+
- GH_USER_EMAIL="[email protected]"
16+
- GH_REF="github.com/zendframework/zend-diactoros.git"
1817
- secure: "abqt51VvId/3EvfymODyivOye2YNlTXPMNk297kM3G5bMxB7ILPUwwSTxfMHoiW9BHjJpdKi+IGBF4GKeYElQHdIwleyLow8dTCpUiJS3RogwaTcm2FbwEJDCFbkV4WRm/HHjriji/wBfBmaAJEfYYlLQAHQWTT7AK7dAgQmiAzaItStl2TV5D/XZU9GLNXay3nH0cDygf+g4t6rFcf3VsI5weHb3WhjATfN+mU82XXkwm2z8Pc1IglBYHskdlwUgbsz8ppTdXplXdKjnf6YdxPapYDKd7TecIV3BWtueC2i48rqblPaSWOzx7qMCA/4aJjzEBmuqqSlYXka2SdGPdBPbpGwcKv09e273xqWQ9sF3d8YhEsSrJBpMpgu4RN+ucLRa15Xcj0oF4aVxrFqxtC7wud7hC0pg6q48dY7PlQh/wTO2biuXcGACcGqMcjPgmE3HJYpK5HoWHUBoWi1VHqbTPRx1jIQD1ILibu9WkuTEtdAi5IXSYAmVSknfyZ7UYJuJgOjhmmkMOcYzD5JJuRGEJASzQk1tX5DItX8mH/LIW942bVOQ+fwsmL/Z+tJDnMpJXLd6tXtyYs99lxFSBSSjqNGAG5HUFjVczvQy9GeeDd2p70IA80NuQNjfXrsyQ9tg8d1keNTOpPCJUwZm7S6IEsvrWAGO6lZ+q7DPQk="
1918

2019
matrix:
2120
include:
2221
- php: 5.4
22+
env:
23+
- DEPS=lowest
24+
- php: 5.4
25+
env:
26+
- DEPS=locked
27+
- php: 5.4
28+
env:
29+
- DEPS=latest
30+
- php: 5.5
31+
env:
32+
- DEPS=lowest
2333
- php: 5.5
2434
env:
25-
- EXECUTE_CS_CHECK=true
35+
- DEPS=locked
36+
- php: 5.5
37+
env:
38+
- DEPS=latest
39+
- php: 5.6
40+
env:
41+
- DEPS=lowest
2642
- php: 5.6
2743
env:
28-
- EXECUTE_COVERAGE=true
44+
- DEPS=locked
2945
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
3046
- PATH="$HOME/.local/bin:$PATH"
31-
- php: 7.0
47+
- TEST_COVERAGE=true
48+
- php: 5.6
49+
env:
50+
- DEPS=latest
51+
- php: 7
52+
env:
53+
- DEPS=lowest
54+
- php: 7
55+
env:
56+
- DEPS=locked
57+
- CHECK_CS=true
58+
- php: 7
59+
env:
60+
- DEPS=latest
61+
- php: 7.1
62+
env:
63+
- DEPS=lowest
64+
- php: 7.1
65+
env:
66+
- DEPS=locked
3267
- php: 7.1
68+
env:
69+
- DEPS=latest
70+
- php: hhvm
71+
env:
72+
- DEPS=lowest
3373
- php: hhvm
74+
env:
75+
- DEPS=locked
76+
- php: hhvm
77+
env:
78+
- DEPS=latest
3479

3580
notifications:
3681
irc: "irc.freenode.org#zftalk.dev"
3782
email: false
3883

3984
before_install:
40-
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
41-
- composer self-update
42-
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then composer require --no-update satooshi/php-coveralls:dev-master ; fi
85+
- travis_retry composer self-update
86+
- if [[ $TRAVIS_PHP_VERSION != "hhvm" && $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini ; fi
4387

4488
install:
45-
- travis_retry composer install --no-interaction --prefer-source
46-
- composer info -i
89+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
90+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
91+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi
92+
- travis_retry composer install $COMPOSER_ARGS
93+
- composer show
4794

4895
script:
49-
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then composer test-coverage ; fi
50-
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then composer test ; fi
51-
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer cs ; fi
52-
- 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
53-
54-
after_success:
55-
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
96+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
97+
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
98+
- 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
5699

57100
after_script:
58-
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then composer coveralls ; fi
101+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi
102+
103+
after_success:
104+
- if [[ $DEPLOY_DOCS == "true" ]]; then ./zf-mkdoc-theme/deploy.sh ; fi

0 commit comments

Comments
 (0)