forked from doctrine-extensions/DoctrineExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (40 loc) · 1.27 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
language: php
sudo: false
matrix:
include:
- php: 5.4
env: phpunit_exclude_groups=datetimeinterface dependencies=lowest
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.1
env: dependencies=lowest
- php: 7.2
env: dependencies=lowest
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:
- |
if [[ "$dependencies" = "lowest" ]]; then
composer update --prefer-lowest --prefer-stable -n
else
composer install --prefer-dist
fi
script:
- |
if [[ ! $phpunit_exclude_groups ]]; then
bin/phpunit -c tests/
else
bin/phpunit -c tests/ --exclude-group $phpunit_exclude_groups
fi
notifications:
email: