This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (43 loc) · 1.53 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
language: php
cache:
directories:
- "$HOME/.composer/cache"
matrix:
fast_finish: true
include:
- php: 5.6
env:
- MONGO_EXTENSION=mongo
- php: 5.6
env:
- MONGODB_EXTENSION=mongodb
- php: 5.6
env:
- MONGO_EXTENSION=mongo
- MONGODB_EXTENSION=mongodb
- SEND_TO_OCULAR=yes
- php: 7.0
env:
- MONGODB_EXTENSION=mongodb
- php: 7.1
env:
- MONGODB_EXTENSION=mongodb
- php: nightly
env:
- MONGODB_EXTENSION=mongodb
- php: hhvm
before_install:
- bash -c 'mkdir bin'
- travis_retry bash -c 'curl -sS https://getcomposer.org/installer | php -- --install-dir=bin'
- bash -c 'chmod +x bin/composer.phar'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then rm phpunit.xml; fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then mv phpunit.hhvm.xml phpunit.xml; fi;'
install:
- travis_retry bash -c 'if [ "$MONGO_EXTENSION" == "mongo" ]; then yes "" | pecl -q install -f mongo-stable; fi;'
- travis_retry bash -c 'if [ "$MONGODB_EXTENSION" == "mongodb" ]; then yes "" | pecl -q install -f mongodb-stable; fi;'
- travis_retry ./bin/composer.phar install --ignore-platform-reqs --no-interaction --prefer-source
script:
- vendor/bin/phpunit
after_script:
- travis_retry bash -c 'if [ "$SEND_TO_OCULAR" == "yes" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
- travis_retry bash -c 'if [ "$SEND_TO_OCULAR" == "yes" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi;'