-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (70 loc) · 2.15 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
language: php
git:
depth: 1
cache:
directories:
- $HOME/.composer
env:
global:
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress"
- COMPOSER_FLAGS=""
before_install:
# turn off XDebug
- phpenv config-rm xdebug.ini || return 0
# Composer v2
- composer self-update --2
jobs:
include:
-
stage: Static Code Analysis
php: 7.4
env: COMPOSER_FLAGS="--no-dev --prefer-stable"
install:
- travis_retry composer update -d dev-tools $DEFAULT_COMPOSER_FLAGS
- composer info -d dev-tools -D | sort
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- composer info -D | sort
script:
- ./check_trailing_spaces.sh || travis_terminate 1
- ./dev-tools/vendor/bin/phpmd src,tests text phpmd.xml || travis_terminate 1
- ./dev-tools/vendor/bin/composer-require-checker check composer.json || travis_terminate 1
- ./dev-tools/vendor/bin/php-cs-fixer fix -v
dist: xenial
- &STANDARD_TEST_JOB
stage: Test
php: 5.6
install:
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- composer info -D | sort
script:
- vendor/bin/simple-phpunit
dist: xenial
-
<<: *STANDARD_TEST_JOB
php: 5.6
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
dist: xenial
-
<<: *STANDARD_TEST_JOB
php: 7.0
-
<<: *STANDARD_TEST_JOB
php: 7.1
dist: bionic
-
<<: *STANDARD_TEST_JOB
php: 7.2
dist: bionic
-
<<: *STANDARD_TEST_JOB
php: 7.3
dist: bionic
-
<<: *STANDARD_TEST_JOB
php: 7.4
dist: bionic
-
<<: *STANDARD_TEST_JOB
php: nightly
env: SYMFONY_DEPRECATIONS_HELPER=weak
dist: bionic