-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
67 lines (53 loc) · 1.6 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
language: php
sudo: false
dist: trusty
git:
depth: 1
php:
- '5.6'
- '7.0'
- nightly
install:
- composer update --prefer-source --no-interaction
env:
- DB=mysql
- DB=pgsql POSTGRESQL_VERSION=9.1
- DB=pgsql POSTGRESQL_VERSION=9.2
- DB=pgsql POSTGRESQL_VERSION=9.3
- DB=pgsql POSTGRESQL_VERSION=9.4
before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database qcubed;'; mysql -u root qcubed < test/db/mysql_innodb.sql; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then createdb qcubed -U postgres; psql -d qcubed -f test/db/pgsql.sql -U postgres; fi"
script:
- ./vendor/bin/phpunit -c ./test/phpunit.xml --coverage-clover ./build/logs/clover.xml
# code coverage
addons:
code_climate:
repo_token: 814dfe2ee0ae6198e43e566e32ab85f40379b5abe06cd52b1f6a24e92b5de883
# code coverage
after_script:
- vendor/bin/test-reporter
matrix:
include:
# test against the latest HHVM version by using trusty
- php: hhvm
env: DB=mysql
sudo: true
dist: trusty
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
services:
- mysql
exclude:
- php: hhvm
env: DB=pgsql POSTGRESQL_VERSION=9.1 # driver currently unsupported by HHVM
- php: hhvm
env: DB=pgsql POSTGRESQL_VERSION=9.2 # driver currently unsupported by HHVM
- php: hhvm
env: DB=pgsql POSTGRESQL_VERSION=9.3 # driver currently unsupported by HHVM
- php: hhvm
env: DB=pgsql POSTGRESQL_VERSION=9.4 # driver currently unsupported by HHVM