forked from laminas/laminas-dependency-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (49 loc) · 1.54 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: php
cache:
directories:
- $HOME/.composer/cache
env:
global:
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="php-coveralls/php-coveralls"
- NO_TEST_DEPS="phpunit/phpunit webimpress/coding-standard"
matrix:
include:
- php: 5.6
env:
- COMPAT_VERSION=5.6
- NO_TEST=1
- php: 7.0
env:
- COMPAT_VERSION=7.0
- NO_TEST=1
- php: 7.1
env:
- COMPAT_VERSION=7.1
- NO_TEST=1
- php: 7.2
env:
- TEST_COVERAGE=true
- COMPAT_VERSION=7.2
- php: 7.3
env:
- COMPAT_VERSION=7.3
- CS_CHECK=1
- php: 7.4
env:
- COMPAT_VERSION=7.4
before_install:
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
install:
- if [[ $NO_TEST == '1' ]]; then travis_retry composer remove --dev $COMPOSER_ARGS $NO_TEST_DEPS ; fi
- travis_retry composer install $COMPOSER_ARGS
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- stty cols 120 && composer show
script:
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else if [[ $NO_TEST != '1' ]]; then composer test ; fi ; fi
- if [[ $COMPAT_VERSION != '0' ]]; then composer cs-check -- -p src --standard=PHPCompatibility --runtime-set testVersion $COMPAT_VERSION ; fi
- if [[ $CS_CHECK == '1' ]]; then composer cs-check ; fi
after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then vendor/bin/php-coveralls -v ; fi
notifications:
email: false