-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (28 loc) · 849 Bytes
/
.travis.yml
File metadata and controls
34 lines (28 loc) · 849 Bytes
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
language: php
php:
- 5.4
- 5.5
- 5.6
- hhvm
env:
- DB=mysql
- DB=pgsql
- DB=sqlite
matrix:
allow_failures:
- env: DB=pgsql
- php: hhvm
env: DB=sqlite
exclude:
- php: hhvm
env: DB=pgsql # driver currently unsupported by HHVM
before_script:
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS acl_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE acl_tests;' -U postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS acl_tests;'; fi"
- composer require satooshi/php-coveralls:dev-master --dev --no-interaction --prefer-source
script:
- mkdir -p build/logs
- phpunit --configuration tests/travis/$DB.phpunit.xml --coverage-clover build/logs/clover.xml
after_script:
- php vendor/bin/coveralls -v