-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
47 lines (41 loc) · 1.17 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/symfony-bridge/.phpunit
env:
global:
- PHPUNIT_FLAGS="-v"
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
- SYMFONY_REQUIRE='>=2.8'
matrix:
fast_finish: true
include:
- php: 7.2
- php: 7.3
- php: 7.4
env: SYMFONY_PHPUNIT_VERSION=9.4
- php: 8.0
env: SYMFONY_PHPUNIT_VERSION=9.4
# Latest commit to master
- php: 7.4
env: STABILITY="dev"
allow_failures:
# Dev-master is allowed to fail.
- env: STABILITY="dev"
before_install:
- phpenv config-rm xdebug.ini || true
- composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-main
install:
- |
if [[ $deps = low ]]; then
export SYMFONY_DEPRECATIONS_HELPER=weak
composer update --prefer-dist --prefer-lowest --prefer-stable
else
composer update --prefer-dist
fi
- ./vendor/bin/simple-phpunit install
script:
- composer validate --strict --no-check-lock
- ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS