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

Commit 4235ea5

Browse files
michalbundyraweierophinney
authored andcommitted
Updated Travis CI configuraiton
- removed allow_failures on PHP 7.2 - updated install process with legacy deps
1 parent 02e4772 commit 4235ea5

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.travis.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ sudo: false
22

33
language: php
44

5-
branches:
6-
except:
7-
- /^release-.*$/
8-
- /^ghgfk-.*$/
9-
105
cache:
116
directories:
127
- $HOME/.composer/cache
@@ -15,7 +10,6 @@ env:
1510
global:
1611
- COMPOSER_ARGS="--no-interaction"
1712
- COVERAGE_DEPS="php-coveralls/php-coveralls"
18-
- LEGACY_DEPS="phpunit/phpunit"
1913

2014
matrix:
2115
include:
@@ -25,7 +19,7 @@ matrix:
2519
- php: 5.6
2620
env:
2721
- DEPS=locked
28-
- TEST_COVERAGE=true
22+
- LEGACY_DEPS="phpunit/phpunit"
2923
- php: 5.6
3024
env:
3125
- DEPS=latest
@@ -35,7 +29,7 @@ matrix:
3529
- php: 7
3630
env:
3731
- DEPS=locked
38-
- CS_CHECK=true
32+
- LEGACY_DEPS="phpunit/phpunit"
3933
- php: 7
4034
env:
4135
- DEPS=latest
@@ -45,6 +39,8 @@ matrix:
4539
- php: 7.1
4640
env:
4741
- DEPS=locked
42+
- CS_CHECK=true
43+
- TEST_COVERAGE=true
4844
- php: 7.1
4945
env:
5046
- DEPS=latest
@@ -57,16 +53,13 @@ matrix:
5753
- php: 7.2
5854
env:
5955
- DEPS=latest
60-
allow_failures:
61-
- php: 7.2
6256

6357
before_install:
64-
- if [[ $TEST_COVERAGE != 'true' && "$(php --version | grep xdebug -ci)" -ge 1 ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
65-
- travis_retry composer self-update
58+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
6659

6760
install:
6861
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
69-
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
62+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
7063
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
7164
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
7265
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi

0 commit comments

Comments
 (0)