forked from zfcampus/zf-apigility-doctrine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 897 Bytes
/
.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
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache
services:
- mongodb
matrix:
fast_finish: true
include:
- php: 5.4
- php: 5.5
env:
- EXECUTE_CS_CHECK=true
- php: 5.6
env:
- EXECUTE_COVERAGE=true
- php: 7
- php: hhvm
allow_failures:
- php: 7
- php: hhvm
notifications:
irc: "irc.freenode.org#apigility-dev"
email: false
before_install:
- phpenv config-add .travis-config.ini || return 0
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- composer self-update
install:
- if [[ $TRAVIS_PHP_VERSION != "hhvm" ]]; then pecl install -f mongo-1.4.1 ; fi
- travis_retry composer install --no-interaction --ignore-platform-reqs --prefer-source
script:
- ./vendor/bin/phpunit
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs ; fi