forked from dustin10/VichUploaderBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.36 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
language: php
php:
- 7.0
- 7.1
- 7.2
- nightly
sudo: false
cache:
directories:
- $HOME/.composer/cache
env:
- SYMFONY_VERSION="~2.8.0"
matrix:
include:
- php: 7.1
env: VALIDATE_DOCS=true
- php: 7.0
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.1
env: SYMFONY_VERSION="~3.2.0"
- php: 7.1
env: SYMFONY_VERSION="~3.3.0"
- php: 7.1
env: SYMFONY_VERSION="~2.8.0" WITH_LIIP_IMAGINE=true
- php: 7.1
env: SYMFONY_VERSION="~3.3.0" WITH_LIIP_IMAGINE=true
allow_failures:
- php: nightly
before_install:
- composer self-update
- phpenv config-rm xdebug.ini || true
- composer config platform.ext-mongo 1.6.14
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony:${SYMFONY_VERSION}; fi
- if [ "$WITH_LIIP_IMAGINE" = true ] ; then composer require --no-update liip/imagine-bundle:^1.7; fi;
- if [ "$VALIDATE_DOCS" = true ]; then composer require --dev --no-update kphoen/rusty dev-master; fi
install: php -d memory_limit=-1 $(phpenv which composer) update $COMPOSER_FLAGS --no-suggest --prefer-dist
script:
- if [ "$VALIDATE_DOCS" != true ]; then ./vendor/bin/phpunit; fi
- if [ "$VALIDATE_DOCS" = true ]; then php ./vendor/bin/rusty check --no-execute ./Resources/doc; fi