-
Notifications
You must be signed in to change notification settings - Fork 187
/
.travis.yml
60 lines (52 loc) · 1.18 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
58
59
60
language: php
sudo: false
git:
depth: 2
matrix:
include:
- php: 7.0
env:
- LINT=true COVERAGE=true
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.3.0
- php: 7.3.1
- php: 7.3.2
- php: nightly
- php: hhvm-3.9
sudo: required
dist: trusty
group: edge
fast_finish: true
allow_failures:
- php: nightly
- php: hhvm-3.9
cache:
directories:
- $HOME/.composer/cache
- $HOME/.php-cs-fixer
before_install:
- source .travis/xdebug.sh
- xdebug-disable
before_script:
- travis_retry composer update --no-interaction --prefer-source --prefer-stable
script:
- if [[ "$LINT" == "true" ]]; then
composer assert:cs-lint;
composer assert:sa-code;
composer assert:sa-tests;
./bin/travis/lint-docs;
fi
- if [[ "$COVERAGE" == "true" ]]; then
xdebug-enable;
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover;
xdebug-disable;
else
vendor/bin/phpunit;
fi
after_script:
- if [[ "$COVERAGE" == "true" ]]; then
wget https://scrutinizer-ci.com/ocular.phar;
php ocular.phar code-coverage:upload --format=php-clover coverage.clover;
fi