-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (38 loc) · 789 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
language: php
php:
- 5.6
- 7.0
- 7.1
- hhvm-3.3
- hhvm-3.6
- nightly
matrix:
include:
- env: LINT=1
php: 5.6
- env: COVERAGE=1
php: 5.6
- language: php
sudo: required
dist: trusty
group: edge
php: hhvm-nightly
allow_failures:
- php: nightly
- php: hhvm-3.3
- php: hhvm-3.6
- php: hhvm-nightly
install:
- composer self-update
- composer install --ignore-platform-reqs
script:
- |
if [[ "$LINT" == "1" ]]; then
./vendor/bin/phpcs -v --report-width=160 --standard=ruleset.xml --severity=1 --warning-severity=0 --extensions=php src utils
elif [[ "$COVERAGE" == "1" ]]; then
vendor/bin/phpunit --coverage-text
else
vendor/bin/phpunit
fi
notifications:
email: change