This repository has been archived by the owner on Mar 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
50 lines (43 loc) · 1.61 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: php
sudo: false
branches:
only:
- master
matrix:
include:
# - php: 5.5
# env: SKIP_OEL=true
- php: 5.6
- php: 7.0
env: DEPENDENCIES='dev'
- php: 7.1
env: DEPENDENCIES='dev'
- php: 7.1
env: DEPENDENCIES='low'
fast_finish: true
cache:
directories:
- $HOME/.composer/cache
before_install:
# Matrix lines for OEL PHP versions are skipped for pull requests
- PHP=$TRAVIS_PHP_VERSION
- if [[ $SKIP_OEL && $TRAVIS_PULL_REQUEST != false ]]; then echo "Version ${PHP} is skipped for this pull request" && exit 0; fi
- phpenv config-rm xdebug.ini || echo "xdebug not available"
- composer selfupdate --stable
- |
# Temp fix `matthiasnoback/symfony-dependency-injection-test` doesn't support Symfony 4 yet
if [[ $DEPENDENCIES == 'dev' ]] && [[ $PHP == '7.1' ]]; then
composer require --no-update "symfony/dependency-injection:v4.0.0-BETA1 as 3.4"
fi;
install:
- |
if [[ $DEPENDENCIES == 'dev' ]] && [[ $PHP == 7* ]]; then
export SYMFONY_PHPUNIT_VERSION=6.2
fi
- export SYMFONY_PHPUNIT_REMOVE="symfony/yaml"
- export SYMFONY_DEPRECATIONS_HELPER=strong
- if [ "$DEPENDENCIES" == "dev" ]; then composer config minimum-stability dev; fi;
- if [ "$DEPENDENCIES" != "low" ]; then composer update --prefer-dist --no-progress --no-suggest --ansi; fi;
- if [ "$DEPENDENCIES" == "low" ]; then composer update --prefer-dist --no-progress --no-suggest --ansi --prefer-lowest; fi;
script:
- vendor/bin/simple-phpunit --verbose