forked from FriendsOfSymfony/FOSRestBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (47 loc) · 1.66 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
language: php
cache:
directories:
- .phpunit
- $HOME/.composer/cache/files
branches:
only:
- master
- /^\d+\.(\d+|x)$/
matrix:
fast_finish: true
include:
# lowest dependencies
- php: 7.2
env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- php: 7.3
env: COMPOSER_FLAGS="--prefer-stable"
# Symfony 4.4
- php: 7.4
env: SYMFONY_REQUIRE="4.4.*" COMPOSER_FLAGS="--prefer-stable"
# Symfony 5.0
- php: 7.4
env: SYMFONY_REQUIRE="5.0.*" COMPOSER_FLAGS="--prefer-stable" COVERAGE=yes
# Symfony 5.1
- php: 7.4
env: SYMFONY_REQUIRE="5.1.*" COMPOSER_FLAGS="--prefer-stable"
# development dependencies
- php: 7.4
env: DEPENDENCIES='dev'
- php: nightly
env: COMPOSER_FLAGS="--ignore-platform-reqs" SYMFONY_DEPRECATIONS_HELPER="max[self]=0"
allow_failures:
- php: 7.4
env: DEPENDENCIES='dev'
- php: nightly
before_install:
- echo "memory_limit=4G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- if [ "$COVERAGE" != "yes" ]; then phpenv config-rm xdebug.ini || true; fi
- composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
- if [ "$SYMFONY_LTS" != "" ]; then composer require --dev --no-update symfony/lts=$SYMFONY_LTS; fi
install:
- composer update $COMPOSER_FLAGS --prefer-dist
- ./phpunit install
script:
- if [ "$COVERAGE" = "yes" ]; then ./phpunit --coverage-clover=coverage.clover; else ./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