forked from NutriconsultorOnline/janephp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (29 loc) · 992 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
37
38
39
dist: trusty
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 7.1
- 7.2
env:
global:
- TEST_COMMAND="composer test"
matrix:
fast_finish: true
include:
- php: 7.1
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
before_install:
- travis_retry composer self-update
- phpenv config-rm xdebug.ini || true
- if [[ "$COVERAGE" = true ]]; then wget https://cs.sensiolabs.org/download/php-cs-fixer-v2.phar; fi
install:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction
script:
- travis_wait $TEST_COMMAND
- if [[ "$COVERAGE" = true ]]; then php php-cs-fixer-v2.phar fix --dry-run --diff; fi
after_success:
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi