-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
34 lines (27 loc) · 1.03 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
sudo: false
language: php
matrix:
fast_finish: true
include:
- php: 7.0
env:
- CODE_COVERAGE_LOG: true
- php: 7.1
env:
- CS_CHECK_ENABLED: true
before_install:
- composer self-update
- if [[ $CODE_COVERAGE_LOG == 'true' ]]; then composer require --no-update satooshi/php-coveralls:0.7.*; fi
- if [[ $CS_CHECK_ENABLED == 'true' ]]; then composer require squizlabs/php_codesniffer:~2.5; fi
install:
- composer install --prefer-source --no-interaction
- if [[ $CODE_COVERAGE_LOG == 'true' ]]; then mkdir -p ./coverage; fi
script:
- ./vendor/bin/phpunit --verbose
- if [[ $CODE_COVERAGE_LOG == 'true' ]]; then ./vendor/bin/phpunit --verbose --coverage-clover coverage/clover.xml; fi;
- if [[ $CS_CHECK_ENABLED == 'true' ]]; then ./vendor/bin/phpcs --standard=PSR2 --ignore=vendor/* --ignore=*/Fixures src tests; fi
after_script:
- if [[ $CODE_COVERAGE_LOG == 'true' ]]; then php vendor/bin/coveralls --coverage_clover coverage/clover.xml; fi
notififation:
on_success: never
on_failure: always