forked from apix/cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (66 loc) · 1.74 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
71
72
73
74
75
76
77
language: php
sudo: false
services:
- redis-server
- memcached
- mongodb
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- nightly
- hhvm
# fails with the message "HHVM nightly is no longer supported on Ubuntu Precise"
#- hhvm-nightly
env:
- DB=apc
- DB=redis
- DB=mongodb
- DB=sqlite
- DB=mysql
- DB=pgsql
- DB=memcached
install:
- travis_retry composer self-update
- travis_retry composer install -o --no-interaction --prefer-source
- mkdir -p build/logs
- tests/bin/travis-init.sh
before_script:
# xdebug is not installed on HHVM and PHP 7, so skip code coverage (COVERAGE="no").
- if [[ $TRAVIS_PHP_VERSION = 5.* ]]; then COVERAGE="no"; fi
script:
- if [ "$COVERAGE" != "no" ]; then vendor/bin/phpunit --colors --verbose --coverage-text --coverage-clover build/logs/clover.xml; fi
- if [ "$COVERAGE" == "no" ]; then vendor/bin/phpunit --colors --verbose; fi
after_script:
- if [ "$COVERAGE" != "no" ]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
- php vendor/bin/coveralls -v
notifications:
irc: "irc.freenode.org#ouarz"
email:
recipients:
- dev-team@ouarz.net
on_success: change
on_failure: change
matrix:
fast_finish: true
include:
- php: 7.0
env: DB=mariadb
addons:
mariadb: 5.5
- php: 7.0
env: DB=mariadb
addons:
mariadb: 10.1
allow_failures:
- php: nightly
- php: 5.3
env: DB=memcached # memcached current client is broken on PHP 5.3, need fixing.
- php: hhvm
- php: hhvm
env: DB=pgsql # pgsql client currently unsupported by HHVM, requires 3rd party dependency.
#cache:
# directories:
# - $HOME/.composer/cache