-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (32 loc) · 1.02 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
language: php
matrix:
include:
- php: 7.1
- php: 7.3
env: PHPUNIT_FLAGS="--coverage-html coverage/"
- php: 7.4snapshot
env: COMPOSER_FLAGS="--prefer-lowest"
- php: nightly
env: COMPOSER="tests/php8-composer.json"
fast_finish: true
allow_failures:
- php: nightly
before_script:
- |
if [[ "$COVERAGE" = true ]] ; then
echo > $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/xdebug.ini
git clone --single-branch --branch=v1.0.6 --depth=1 https://github.com/krakjoe/pcov
cd pcov
phpize
./configure
make clean install
echo "extension=pcov.so" > $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/pcov.ini
cd $TRAVIS_BUILD_DIR
fi
- travis_retry composer self-update
- travis_retry composer update --no-interaction --prefer-dist $COMPOSER_FLAGS
script:
- vendor/bin/simple-phpunit $PHPUNIT_FLAGS
cache:
directories:
- $COMPOSER_CACHE_DIR