forked from FriendsOfSymfony/FOSRestBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (39 loc) · 1.07 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
language: php
sudo: false
cache:
directories:
- .phpunit
- $HOME/.composer/cache/files
branches:
only:
- master
- /^\d+\.\d+$/
matrix:
fast_finish: true
include:
- php: 5.5
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_DEPRECATIONS_HELPER=weak
- php: 5.6
# Symfony 3 LTS
- php: 7.0
env: SYMFONY_LTS='^3'
# Symfony 4
- php: 7.1
env: SYMFONY_PHPUNIT_VERSION='6.5'
- php: 7.2
- php: 7.3
# development dependencies
- php: 7.2
env: DEPENDENCIES='dev'
allow_failures:
- php: 7.2
env: DEPENDENCIES='dev'
before_install:
- echo "memory_limit=4G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini || true; fi
- if [ "$DEPENDENCIES" != "" ]; then composer config minimum-stability $DEPENDENCIES; fi
- if [ "$SYMFONY_LTS" != "" ]; then composer require --dev --no-update symfony/lts=$SYMFONY_LTS; fi
install:
- composer update $COMPOSER_FLAGS --prefer-dist
- ./phpunit install
script: ./phpunit