-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
40 lines (33 loc) · 899 Bytes
/
.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
sudo: false
cache:
directories:
- $HOME/.composer/cache
- vendor/
branches:
only:
- master
- develop
- /^v\d+\.\d+\.\d+$/
matrix:
fast_finish: true
include:
- php: 7.4
env:
- SYMFONY=4.4.*
- PHPSTAN=true
- php: 8.0
env:
- SYMFONY=4.4.*
- PHPSTAN=true
before_install:
- phpenv config-rm xdebug.ini || echo "XDebug disabled."
- composer self-update
- if [ "$SYMFONY" != "" ]; then composer require "symfony/framework-bundle:$SYMFONY" --no-update; fi;
install:
- cp phpunit.xml.dist phpunit.xml
- composer install
- if [[ ${PHPSTAN} == "true" ]]; then composer require --dev phpstan/phpstan; fi
script:
- vendor/phpunit/phpunit/phpunit -c phpunit.xml Tests/
- if [[ ${PHPSTAN} == "true" ]]; then vendor/bin/phpstan analyse -l 7 DependencyInjection/ XsolveModelFactoryBundle.php ; fi