-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
62 lines (51 loc) · 1.56 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
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: boost installation
- composer global show hirak/prestissimo -q || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
jobs:
include:
-
stage: Static Code Analysis
php: 7.1
install:
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- composer info -D | sort
script:
- ./vendor/bin/php-cs-fixer fix -v --dry-run
- ./vendor/bin/composer-require-checker check composer.json
- &STANDARD_TEST_JOB
stage: Test
php: 7.2
install:
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- composer info -D | sort
script:
- vendor/bin/phpunit || travis_terminate 1
-
<<: *STANDARD_TEST_JOB
stage: Test
php: 7.1
env: COMPOSER_FLAGS="--ignore-platform-reqs --prefer-stable --prefer-lowest"
-
<<: *STANDARD_TEST_JOB
stage: Test
php: 7.3
-
<<: *STANDARD_TEST_JOB
stage: Test
php: 7.4
-
<<: *STANDARD_TEST_JOB
stage: Test
php: 8.0