-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (27 loc) · 825 Bytes
/
.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
language: php
php:
- "7.2"
- "7.1"
install: composer install --no-interaction
env:
global:
- APP_MODE=test
cache:
directories:
- "$HOME/.composer/cache"
before_script:
- mysql -e 'create database `dataflow-server`;'
- cp -f config/autoload/db.travis.php config/autoload/db.test.php
- cp -f config/autoload/doctrine.travis.php config/autoload/doctrine.test.php
- cp -f config/travis.config.php config/test.config.php
# launch php server
- php -S localhost:8080 --docroot http &>/dev/null&
script:
- ./vendor/bin/codecept run --env travis --coverage-xml --debug --no-interaction
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover ./tests/_output/coverage.xml
notifications:
email: true
matrix:
fast_finish: true