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

Commit b6a6c33

Browse files
committed
Updated .travis.yml by copy&paste from zendframework/zend-config-aggregator
1 parent 741c1f0 commit b6a6c33

File tree

1 file changed

+47
-41
lines changed

1 file changed

+47
-41
lines changed

.travis.yml

Lines changed: 47 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,69 +2,75 @@ sudo: false
22

33
language: php
44

5-
branches:
6-
except:
7-
- /^release-.*$/
8-
- /^ghgfk-.*$/
9-
105
cache:
116
directories:
127
- $HOME/.composer/cache
13-
- $HOME/.local
14-
- zf-mkdoc-theme
15-
16-
services:
17-
- mongodb
188

199
env:
2010
global:
21-
- SITE_URL="https://zendframework.github.io/zend-cache-mongo"
22-
- GH_USER_NAME="Matthew Weier O'Phinney"
23-
- GH_USER_EMAIL="matthew@weierophinney.net"
24-
- GH_REF="github.com/zendframework/zend-cache-mongo.git"
25-
- secure: "ZYYlfFWTde5MCn6twsm/+s+mx4bLEaVFFG+tuaeiz7nCx+z495D6FxruzBbY1zheX9rNo9qReDo0Tyfn2wrUH8SJYbR9iKDqB95GPDDPW+I23Mw3Uuddr8XqbtabTJVqEQg6iAu7IIQG4TvFFmdq/g26jWim8Cngg/5zZh4Q2GuLSjIKRJBpLe7mSTjQVqaApS/a8wmvPJiSoqxWmY8Botc88ZXMmkRDPQoqEdZOeS4i029cGMXUnzGj7Vl7qwfol6Yj/R441Hd84Vt8P8BOdRyW0tjmllXLXJUYFKCcP5fEqIujbU68FwJMidCPzBcXv2N0klW43ViVwdJD6gBgZStwOyENGeEw1VcbZ6JReMa68F1mtqLhBhZtF8WRUI8+TYMYmLPGMVTcets4P3nIB18uX1CittwGDD2y2OL8MDvuIuaSQFoj/PdUb+BC/DvvmtPGnF6MLTAUjqNlxYbmzopufDEtivWHsqeyxHZj0L0HD5KkMslD9wnngfi+lcQ5e3iFQe/H5vQKE0BfooukxErIXk00cwwMoMjFY4v95CS0BKFhA4HMclKpGEA94CH4STxwyD2Nz/z6iGPqkZuzqDLOKhLr2FsY7bFbvEdNu57G3PGahtYJtc31lcnwKf2t1ALGcG9LS0/ezJSzqx659hWL0B5qgHjCNDnAyKJcNxM="
11+
- COMPOSER_ARGS="--no-interaction"
12+
- COVERAGE_DEPS="php-coveralls/php-coveralls"
2613

2714
matrix:
2815
include:
2916
- php: 5.6
3017
env:
3118
- DEPS=lowest
32-
- CHECK_CS=true
33-
#- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
34-
#- PATH="$HOME/.local/bin:$PATH"
3519
- php: 5.6
20+
env:
21+
- DEPS=locked
22+
- LEGACY_DEPS="phpunit/phpunit"
23+
- php: 5.6
24+
env:
25+
- DEPS=latest
26+
- php: 7
27+
env:
28+
- DEPS=lowest
29+
- php: 7
30+
env:
31+
- DEPS=locked
32+
- LEGACY_DEPS="phpunit/phpunit"
33+
- php: 7
3634
env:
3735
- DEPS=latest
36+
- php: 7.1
37+
env:
38+
- DEPS=lowest
39+
- php: 7.1
40+
env:
41+
- DEPS=locked
42+
- CS_CHECK=true
3843
- TEST_COVERAGE=true
39-
40-
notifications:
41-
irc: "irc.freenode.org#zftalk.dev"
42-
email: false
44+
- php: 7.1
45+
env:
46+
- DEPS=latest
47+
- php: 7.2
48+
env:
49+
- DEPS=lowest
50+
- php: 7.2
51+
env:
52+
- DEPS=locked
53+
- php: 7.2
54+
env:
55+
- DEPS=latest
4356

4457
before_install:
45-
- if [[ $TRAVIS_PHP_VERSION != "hhvm" && $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini ; fi
46-
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then phpenv config-add .ci/mongo.ini ; fi
58+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
4759

4860
install:
49-
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update ; fi
50-
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable ; fi
51-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev satooshi/php-coveralls:^1.0 ; fi
52-
- travis_retry composer install
53-
- composer show
61+
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
62+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
63+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
64+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
65+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
66+
- stty cols 120 && composer show
5467

5568
script:
56-
- if [[ $TEST_COVERAGE == 'true' ]]; then
57-
composer run-script test -- --colors=always --coverage-clover clover.xml ;
58-
else
59-
composer run-script test -- --colors=always ;
60-
fi
61-
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
62-
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then
63-
travis_retry curl -sSL https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh | bash ;
64-
fi
69+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
70+
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
6571

6672
after_script:
67-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry ./vendor/bin/coveralls -v -x clover.xml ; fi
73+
- if [[ $TEST_COVERAGE == 'true' ]]; then vendor/bin/php-coveralls -v ; fi
6874

69-
after_success:
70-
- if [[ $DEPLOY_DOCS == "true" ]]; then ./zf-mkdoc-theme/deploy.sh ; fi
75+
notifications:
76+
email: false

0 commit comments

Comments
 (0)