-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.yml
More file actions
38 lines (30 loc) · 771 Bytes
/
.travis.yml
File metadata and controls
38 lines (30 loc) · 771 Bytes
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
language: php
matrix:
fast_finish: true
include:
- php: 7.0
- php: 7.1
- php: 7.2
allow_failures:
- php: 7.2
cache:
directories:
- vendor
- $HOME/.composer/cache
install:
# show versions and env information
- php --version
- composer --version
# disable xdebug for performance reasons
- phpenv config-rm xdebug.ini || echo "xdebug is not installed"
# Install out dependencies
- travis_retry composer self-update
- travis_retry composer install --prefer-source --no-interaction --dev
before_script:
# Enable code coverage
- |
if [ $TASK_TESTS_COVERAGE == 1 ]; then
PHPUNIT_FLAGS="--coverage-clover=$TRAVIS_BUILD_DIR/build/logs/clover.xml"
fi
script:
- vendor/bin/phpunit --verbose $PHPUNIT_FLAGS