-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
50 lines (41 loc) · 1.28 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
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache
env:
global:
- COMPOSER_ARGS="--no-interaction"
- XDEBUG_MODE=coverage
matrix:
fast_finish: true
include:
- php: 7.3
env:
- DEPS=lowest
- php: 7.3
env:
- DEPS=latest
- EXECUTE_COVERAGE=true
- EXECUTE_CS_CHECK=true
- php: 7.4
allow_failures:
- php: nightly
before_install:
- shopt -s expand_aliases
- chmod -R +rwX test/asset/data
- if [[ $EXECUTE_COVERAGE != "true" ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- composer self-update
- composer --version
- php -v
- php -m
install:
- if [[ $DEPS == "lowest" ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- if [[ $DEPS == "latest" ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- travis_retry composer install $COMPOSER_ARGS
- composer show --installed
script:
- if [[ $EXECUTE_COVERAGE == "true" ]] ; then travis_retry vendor/bin/phpunit --coverage-clover build/logs/clover.xml; else travis_retry vendor/bin/phpunit ; fi
- if [[ $EXECUTE_CS_CHECK == "true" ]] ; then travis_retry vendor/bin/phpcs ; fi
after_script:
- if [[ $EXECUTE_COVERAGE == "true" ]] ; then travis_retry php vendor/bin/coveralls ; fi