/
.travis.yml
54 lines (54 loc) · 1.12 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
dist: trusty
language: php
services:
- memcached
- mongodb
- postgresql
- mysql
addons:
apt:
packages:
- gearman-job-server
- libgearman-dev
- gearman-tools
php:
- '7.1'
- hhvm
env:
- DB=mysql
- DB=sqlite
- DB=pgsql
matrix:
fast_finish: true
allow_failures:
- php: hhvm
- php: '7.0'
before_install:
- if [[ "$DB" == "mysql" ]]; then sudo sh travis/install-mysql-utilities ; fi
install:
- phpenv rehash
- "./travis/setup-php"
- travis_retry composer install
before_script:
- "./travis/setup-db"
- bin/maghead use -f tests/config/$DB.yml
- bin/maghead schema build -f
script:
- travis/run-phpunit
- travis/run-examples
before_cache:
- travis_retry composer require "satooshi/php-coveralls" "~1"
after_success:
- if [[ "$DB" == "mysql" ]]; then php vendor/bin/coveralls -v ; fi
cache:
apt: true
directories:
- vendor
- exts
- "$HOME/.composer/cache"
notifications:
email:
on_success: change
on_failure: change
slack:
secure: QJC3hb9lJ0aCMI3VcTnOBOUgFp/CXEoUP8pToD/lMrOvlRBv9CS3hOUKQZVtymtI5ocVnPo5gXGf8CBXrTJ2ZLP8E7VaIn/zE1S1BbmKOLVPtyof5ayFE8v3AptV7rPNn3db1Se+G73aTYdx26NergfeO5qmu6fLYxrlyAebjFU=