-
Notifications
You must be signed in to change notification settings - Fork 112
/
.travis.yml
64 lines (54 loc) · 1.5 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
language: php
dist: trusty
php:
- 7.2
- 7.1
- 7.0
- 5.6
env:
global:
- COMPOSER=composer-ci.json
matrix:
- DB=mysql
- DB=pgsql
- DB=sqlite
matrix:
include:
- php: hhvm
env: DB=mysql
- php: hhvm
env: DB=sqlite
exclude:
- php: hhvm
env: DB=pgsql
branches:
only:
- master
- gh-pages
- /^feature\/.+$/
install:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-dist
before_script:
- if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then echo 'xdebug.enable = On' >> /etc/hhvm/php.ini; fi
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS audit_test;" -uroot; fi
- if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS audit_test;" -U postgres; fi
- if [[ "$DB" == "pgsql" ]]; then psql -c "create database audit_test;" -U postgres; fi
- cd tests
- php codeception/_app/yii migrate/up --interactive=0
- php codeception/_app/yii migrate/up --migrationPath=../src/migrations --interactive=0
- php ../vendor/bin/codecept build
script:
- php ../vendor/bin/codecept run --coverage-html --coverage-xml
after_script:
- php ../vendor/bin/ocular code-coverage:upload --format=php-clover codeception/_output/coverage.xml
after_failure:
- cat codeception/_app/runtime/logs/*
- cat codeception/_output/*
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/b8a97760936530897759
on_success: change
on_failure: always
on_start: false