forked from mossodev/FOSRestBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (40 loc) · 1.12 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
cache:
directories:
- .phpunit
- $HOME/.composer/cache/files
branches:
only:
- master
- /^\d+\.(\d+|x)$/
matrix:
fast_finish: true
include:
# lowest dependencies
- php: 7.1
env: COMPOSER_FLAGS="--prefer-lowest"
# Symfony 3 LTS
- php: 7.2
env: SYMFONY_REQUIRE="3.4.*"
# Symfony 4.3
- php: 7.3
env: SYMFONY_REQUIRE="4.3.*"
# Symfony 4.4
- php: 7.4
env: SYMFONY_REQUIRE="4.4.*"
# development dependencies
- php: 7.4
env: DEPENDENCIES='dev'
allow_failures:
- php: 7.4
env: DEPENDENCIES='dev'
before_install:
- echo "memory_limit=4G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini || true
- composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-master
- 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