/
.travis.yml
32 lines (26 loc) · 936 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
language: php
env:
global:
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="php-coveralls/php-coveralls"
matrix:
include:
- php: 7.2
env:
- CS_CHECK=true
- MD_CHECK=true
- TEST_COVERAGE=true
- php: 7.3
before_install:
# - if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- cp phpunit.xml.dist phpunit.xml
install:
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- stty cols 120 && composer show
script:
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
- if [[ $MD_CHECK == 'true' ]]; then composer md-check ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage-clover ; else composer test ; fi
after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi