forked from cordoval/Core-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
executable file
·51 lines (41 loc) · 1.03 KB
/
.travis.yml
File metadata and controls
executable file
·51 lines (41 loc) · 1.03 KB
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
language: php
php:
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
fast_finish: true
allow_failures:
- php: hhvm
- php: 7.0
sudo: false
cache:
directories:
- vendor
- $HOME/.composer/cache
before_script:
- mysql -e 'create database ot_test;'
- composer install -o --prefer-dist
- php cli/config.php create
- php cli/migration.php migrations:migrate -n
script:
- |
if [ $TRAVIS_PHP_VERSION = '7' ]; then
php tools/phpunit.phar
else
php tools/phpunit.phar --coverage-clover=coverage.clover
fi
after_script:
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
travis_retry wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/62d2ef3db2dd2b321922
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false