forked from liip/LiipImagineBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
104 lines (84 loc) · 2.58 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
env:
global:
- SYMFONY_DEPRECATIONS_HELPER="weak_vendors"
- PHPUNIT_FLAGS="-v"
- PHPUNIT_ENABLED="true"
- PHPCSFIXER_ENABLED="false"
- COVERALLS_ENABLED="false"
matrix:
fast_finish: true
include:
- php: 7.1
- php: 7.1
env:
- PHPUNIT_ENABLED="false"
- PHPCSFIXER_ENABLED="true"
- php: 7.1
env:
- SYMFONY_VERSION=4.0.*
- COMPOSER_FLAGS="--prefer-lowest"
- DEPENDENCIES="symfony/phpunit-bridge:^4"
- php: 7.2
- php: 7.2
env: SYMFONY_VERSION=3.4.*
- php: 7.2
env: SYMFONY_VERSION=4.0.*
- php: 7.2
env:
- DEPENDENCIES="symfony/phpunit-bridge:^4"
- COMPOSER_UPDATE_FLAGS="--no-dev"
- php: 7.2
env:
- COVERALLS_ENABLED="true"
- PHPUNIT_FLAGS="-v --coverage-text --coverage-clover var/build/clover.xml"
- php: 7.2
env:
- SYMFONY_VERSION=dev-master
- STABILITY=dev
- php: nightly
env:
- SYMFONY_VERSION=4.0.*
- COMPOSER_FLAGS="--ignore-platform-reqs"
allow_failures:
- env:
- COVERALLS_ENABLED="true"
- PHPUNIT_FLAGS="-v --coverage-text --coverage-clover var/build/clover.xml"
- env:
- SYMFONY_VERSION=dev-master
- STABILITY=dev
- php: nightly
before_install:
- if [[ "$SYMFONY_VERSION" != "" ]]; then
travis_retry composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update $COMPOSER_FLAGS;
fi
- if [[ "$DEPENDENCIES" != "" ]]; then
travis_retry composer require $DEPENDENCIES --no-update $COMPOSER_FLAGS;
fi
- if [[ "$STABILITY" != "" ]]; then
travis_retry composer config minimum-stability $STABILITY;
fi
- if [[ "$COVERALLS_ENABLED" != "true" ]]; then
phpenv config-rm xdebug.ini || true;
fi
- if [[ "$COVERALLS_ENABLED" == "true" ]]; then
travis_retry composer require --dev satooshi/php-coveralls:^2.0@dev --no-update $COMPOSER_FLAGS;
fi
install:
- travis_retry composer update --prefer-dist --no-interaction --no-suggest --no-progress --ansi $COMPOSER_FLAGS $COMPOSER_UPDATE_FLAGS
- ./vendor/bin/simple-phpunit install
script:
- if [[ "$PHPUNIT_ENABLED" == "true" ]]; then
./vendor/bin/simple-phpunit $PHPUNIT_FLAGS;
fi
- if [[ "$PHPCSFIXER_ENABLED" == "true" ]]; then
vendor/bin/php-cs-fixer --dry-run --diff -vvv fix;
fi
after_success:
- if [[ "$PHPUNIT_ENABLED" == "true" && "$COVERALLS_ENABLED" == "true" ]]; then
./vendor/bin/php-coveralls -vvv --config .coveralls.yml;
fi;