-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
40 lines (31 loc) · 1.09 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
language: php
php:
- '7.2'
- '7.3'
- '7.4'
- '8.0'
env:
- SYMFONY_VERSION=4.4.*
- SYMFONY_VERSION=5.4.*
matrix:
include:
- php: 8.0
env: SYMFONY_VERSION=6.0.*
cache:
directories:
- ~/.composer/cache/files
install:
- composer require symfony/config:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer require symfony/dependency-injection:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer require symfony/http-client:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer require symfony/http-kernel:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer require symfony/yaml:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer require --dev symfony/phpunit-bridge:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
- composer update --prefer-dist
- vendor/bin/simple-phpunit install
script:
- composer check
- composer validate --strict --no-check-lock
- vendor/bin/php-cs-fixer fix -v --dry-run
- vendor/bin/phpstan analyse
- vendor/bin/simple-phpunit $PHPUNIT_FLAGS