-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (42 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
48
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 7.4
- 8.0
- nightly
jobs:
fast_finish: true
allow_failures:
- php: nightly
include:
# Minimum supported dependencies with the latest and oldest PHP version
- php: 8.0
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
- php: 7.4
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
# Test LTS versions. This makes sure we do not use Symfony packages with version greater
# than 3. Read more at https://github.com/symfony/lts
- php: 7.4
env:
- DEPENDENCIES="symfony/lts:^3"
- STATIC_ANALYSIS=true
# Test PHP nightly
- php: nightly
env:
- COMPOSER_FLAGS="--ignore-platform-reqs=php"
before_install:
- phpenv config-rm xdebug.ini || true
- if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
install:
- composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
script:
- composer validate --strict --no-check-lock
- vendor/bin/phpunit
- |
if [[ $STATIC_ANALYSIS == true ]]; then
vendor/bin/phpcs .
vendor/bin/phpstan analyze --level max .
fi