forked from liip/LiipImagineBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (60 loc) · 2.5 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
sudo: false
dist: trusty
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
cache:
directories:
- $HOME/.composer/cache/files
env:
global:
- SYMFONY_VERSION=2.8.x
- SYMFONY_DEPRECATIONS_HELPER=weak
matrix:
include:
- php: 5.3
env: COMPOSER_FLAGS="--prefer-lowest" IMAGINE_VERSION=^0.6.3
dist: precise
- php: 5.6
env: SYMFONY_VERSION=2.3.x-dev
- php: 5.6
env: SYMFONY_VERSION=2.7.x-dev
- php: 5.6
env: SYMFONY_VERSION=2.8.x-dev WITH_ENQUEUE=true
- php: 7.1
env: SYMFONY_VERSION=3.0.x-dev
- php: 7.1
env: SYMFONY_VERSION=3.1.x-dev
- php: 7.1
env: SYMFONY_VERSION=3.2.x-dev
- php: 7.1
env: SYMFONY_VERSION=3.3.x-dev WITH_ENQUEUE=true
- php: 7.1
env: SYMFONY_VERSION=dev-master
- php: hhvm
allow_failures:
- php: 7.1
env: SYMFONY_VERSION=dev-master
before_install:
- if [ "${TRAVIS_PHP_VERSION}" != "hhvm" ]; then echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
- cp ./.composer/config.json ~/.composer; composer global require "hirak/prestissimo:^0.3"
- if [ "${TRAVIS_PHP_VERSION}" == "5.3" ]; then composer remove --no-update --dev satooshi/php-coveralls; fi;
- if [ "${SYMFONY_VERSION:0:3}" == "2.3" ]; then composer remove --no-update --dev friendsofphp/php-cs-fixer; fi;
- if [ "${SYMFONY_VERSION:-x}" != "x" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
- if [ "${IMAGINE_VERSION:-x}" != "x" ]; then composer require "imagine/Imagine:${IMAGINE_VERSION}" --no-update; fi;
- if [ "${TRAVIS_PHP_VERSION}" != "hhvm" ] && [ "${TRAVIS_PHP_VERSION:0:3}" != "5.3" ]; then composer require --no-update --dev league/flysystem:~1.0; fi;
- if [ "${TRAVIS_PHP_VERSION}" != "hhvm" ] && [ "${TRAVIS_PHP_VERSION:0:1}" != "7" ]; then yes "" | pecl -q install -f mongo; composer require --no-update --dev doctrine/mongodb-odm:~1.0; fi;
- if [ "${TRAVIS_PHP_VERSION}" != "hhvm" ] && [ "${TRAVIS_PHP_VERSION:0:1}" == "7" ]; then yes "" | pecl -q install -f mongodb; travis_retry composer require --dev alcaeus/mongo-php-adapter:~1.0; composer require --no-update --dev doctrine/mongodb-odm:~1.0; fi
- if [ "$WITH_ENQUEUE" = true ] ; then composer require --no-update --dev enqueue/enqueue-bundle:^0.3.6; fi;
install:
- travis_retry composer update $COMPOSER_FLAGS
script:
- bin/simple-phpunit -vvv || bin/phpunit -vvv
after_script:
- if [ "${TRAVIS_PHP_VERSION}" != "5.3" ]; then bin/coveralls -vvv; fi;