forked from doctrine/DoctrineFixturesBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.11 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
language: php
cache:
directories:
- $HOME/.composer/cache/files
php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
global:
- SYMFONY_DEPRECATIONS_HELPER="max[self]=0&max[direct]=0"
jobs:
include:
# Minimum supported PHP and Symfony version
- stage: test
php: 7.1
env: DEPENDENCIES="minimum"
# Test LTS version we support
- stage: test
php: 7.3
env: DEPENDENCIES="symfony/lts:v3"
- stage: test
php: 7.3
env: DEPENDENCIES="dev"
# Run phpcs
- stage: Code Quality
php: 7.2
env: CODING_STANDARDS
script:
- vendor/bin/phpcs
before_install:
- if [ "$DEPENDENCIES" = "minimum" ]; then COMPOSER_FLAGS="--prefer-stable --prefer-lowest"; fi;
- if [ "$DEPENDENCIES" = "dev" ]; then composer config minimum-stability dev; fi;
- if [[ $DEPENDENCIES == *"/"* ]]; then composer require --no-update $DEPENDENCIES; fi;
install:
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
script:
- vendor/bin/phpunit