-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
37 lines (31 loc) · 1.04 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
cache:
directories:
- $HOME/.composer/cache/files
language: php
env:
global:
- SYMFONY_VERSION=""
- COMPOSER_OPTIONS="--prefer-stable"
matrix:
fast_finish: true
include:
- php: 7.1
env: COMPOSER_OPTIONS="--prefer-lowest --prefer-stable"
- php: 7.2
- php: 7.2
env: SYMFONY_REQUIRE="4.4.*"
- php: 7.3
env: COVERAGE=yes SYMFONY_PHPUNIT_VERSION=7.5
- php: 7.4
- php: 8.0snapshot
env: COMPOSER_OPTIONS=""
before_install:
- if [ "$COVERAGE" != "yes" ]; then phpenv config-rm xdebug.ini; fi
- composer global require --no-progress --no-scripts --no-plugins symfony/flex
install:
- composer update $COMPOSER_OPTIONS
- vendor/bin/simple-phpunit install
script:
- if [ "$COVERAGE" = "yes" ]; then vendor/bin/simple-phpunit --coverage-clover=coverage.clover; else vendor/bin/simple-phpunit; fi
- if [ "$COVERAGE" = "yes" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$COVERAGE" = "yes" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi