-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (40 loc) · 833 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
40
41
42
43
44
45
46
47
48
49
50
language: php
dist: xenial
group: edge
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- nightly
matrix:
include:
- env: LINT=1
php: 7.1
#- env: COVERAGE=1
# php: 7.1
allow_failures:
- php: nightly
install:
- composer self-update
- echo "${TRAVIS_PHP_VERSION:0:3}"
- |
if [[ "${TRAVIS_PHP_VERSION:0:7}" == "nightly" ]]; then
composer install --ignore-platform-reqs
else
composer install
fi
script:
- |
if [[ "$LINT" == "1" ]]; then
./vendor/bin/phpcs -v --report-width=160 --standard=ruleset.xml --severity=1 --warning-severity=0 --extensions=php src utils tests
elif [[ "$COVERAGE" == "1" ]]; then
vendor/bin/phpunit --coverage-text
else
vendor/bin/phpunit
fi
notifications:
email:
on_success: change
on_failure: always