Skip to content

Commit 98456fd

Browse files
author
Cliff Odijk
committed
Sync .travis.yml files to all the child projects to have the same structure and allow_failures settings
1 parent d064724 commit 98456fd

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.travis.yml

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

33
language: php
44

5+
cache:
6+
directories:
7+
- $HOME/.composer/cache/files
8+
59
matrix:
10+
fast_finish: true
611
include:
712
- php: 7.1
13+
- php: 7.2
814
- php: 7.2
915
env: COMPOSER_FLAGS="--prefer-lowest"
16+
17+
# Test Symfony versions
1018
- php: 7.2
1119
env: SYMFONY_VERSION=2.7.*
1220
- php: 7.2
@@ -19,22 +27,23 @@ matrix:
1927
env: SYMFONY_VERSION=4.0.*
2028
- php: 7.2
2129
env: SYMFONY_VERSION=4.0.* REMOVE_PROXY_BRIDGE="yes" EXTRA_PHPUNIT_PARAMS="--group SymfonyBridgeProxyManagerDependency"
30+
allow_failures:
31+
- env: COMPOSER_FLAGS="--prefer-lowest"
2232

2333
env:
2434
global:
25-
- SYMFONY_VERSION=""
26-
- REMOVE_PROXY_BRIDGE="no"
35+
- COMPOSER_FLAGS=""
2736
- EXTRA_PHPUNIT_PARAMS=""
28-
- COMPOSER_FLAGS="--prefer-dist"
37+
- REMOVE_PROXY_BRIDGE="no"
38+
- SYMFONY_VERSION=""
2939

3040
before_install:
3141
- composer self-update
3242
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/http-kernel:$SYMFONY_VERSION symfony/dependency-injection:$SYMFONY_VERSION symfony/yaml:$SYMFONY_VERSION symfony/config:$SYMFONY_VERSION symfony/monolog-bridge:$SYMFONY_VERSION symfony/framework-bundle:$SYMFONY_VERSION symfony/proxy-manager-bridge:$SYMFONY_VERSION; fi
3343

3444
install:
35-
- composer update $COMPOSER_FLAGS
45+
- composer update --prefer-dist $COMPOSER_FLAGS
3646
- if [ "$REMOVE_PROXY_BRIDGE" == "yes" ]; then composer remove symfony/proxy-manager-bridge; fi
3747

3848
script:
39-
- vendor/bin/phpunit $EXTRA_PHPUNIT_PARAMS
40-
49+
- ./vendor/bin/phpunit $EXTRA_PHPUNIT_PARAMS

0 commit comments

Comments
 (0)