forked from doctrine-extensions/DoctrineExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 loc) · 1.16 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
language: php
sudo: false
matrix:
include:
- php: 5.4
env: phpunit_exclude_groups=datetimeinterface
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
cache:
directories:
- $HOME/.composer/cache
services: mongodb
before_install:
- if [[ "$TRAVIS_PHP_VERSION" = 5.* ]]; then echo 'extension=mongo.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
- if [[ "$TRAVIS_PHP_VERSION" != 5.* ]]; then echo 'extension=mongodb.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
- if [[ "$TRAVIS_PHP_VERSION" != 5.* ]]; then cp composer7.json composer.json; fi
install:
- composer install --prefer-dist
script:
- |
if [[ ! $phpunit_exclude_groups ]]; then
echo "Debug: 'bin/phpunit -c tests/'"
bin/phpunit -c tests/
else
echo "Debug: 'bin/phpunit -c tests/ --exclude-group $phpunit_exclude_groups'"
bin/phpunit -c tests/ --exclude-group $phpunit_exclude_groups
fi
notifications:
email: