-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (26 loc) · 799 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
sudo: false
language: php
matrix:
fast_finish: true
include:
- php: 7.1
env:
- EXECUTE_COVERAGE=true
- LOG_DIR=./build/logs
- CLOVER_PATH=$LOG_DIR/clover.xml
- php: 7.2
allow_failures:
- php: 7.2
notifications:
email: false
before_install:
- phpenv config-rm xdebug.ini || return 0
- mkdir -p $LOG_DIR || return 0
install:
- composer self-update
- composer install --no-interaction --prefer-source
script:
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then phpdbg -qrr ./vendor/bin/phpunit --coverage-clover=$CLOVER_PATH ; fi
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then ./vendor/bin/phpunit ; fi
after_script:
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/ocular code-coverage:upload --format=php-clover $CLOVER_PATH; fi