-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.travis.yml
39 lines (31 loc) · 1014 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
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true
include:
- php: 7.0
- php: 7.1
- php: 7.2
env:
- EXECUTE_CS_CHECK=true
- EXECUTE_COVERAGE=true
- php: 7.3
- php: 7.4
env:
- COMPOSER_OPTS=""
- COMPOSER_OPTS="--prefer-lowest"
before_install:
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- composer self-update
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then composer require --no-update php-coveralls/php-coveralls ; fi
install:
- travis_retry composer update --no-interaction --prefer-source $COMPOSER_OPTS
script:
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then ./vendor/bin/phpunit ; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs ; fi
after_script:
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/php-coveralls ; fi