forked from giorgiosironi/eris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (39 loc) · 1.33 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
language: php
sudo: false
env:
global:
- secure: "Vbdts9k+dvnzAmuRPXMDZLw2+s+4q0Ijdbx97rCBefrBbG+6elfR0ao60135QVAoiQxTR//Iz6ZZbsFfTTt9Qo4SVvulzepuLz4lDQmO1BTeKlAWyM650+uFDP39iRY+i6Z7w5RGZzw4F3Sjw8N4kcxdrkkJLH4p9ZQkA5uSkzg="
matrix:
fast_finish: true
include:
- php: 5.5 # PHPUnit 4.8
- php: 5.6 # PHPUnit 5.7
env: WITH_CS=true
- php: 7 # PHPUnit 6.x
- php: 7.1 # PHPUnit 7.x
- php: 7.2 # PHPUnit 7.x
- php: hhvm
env: SKIP_LINT_TEST_CASES=1
sudo: required
dist: trusty
group: edge
cache:
directories:
- $HOME/.composer/cache
before_install:
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi
- composer self-update
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$GITHUB_TOKEN" != "" ]]; then composer config github-oauth.github.com $GITHUB_TOKEN; fi
- composer validate
install:
- composer install --prefer-dist
script:
- vendor/bin/phpunit test
- if [[ "$WITH_CS" == "true" ]]; then vendor/bin/php-cs-fixer fix --config=.php_cs --verbose --diff --dry-run; fi
#notifications:
# webhooks:
# urls:
# - https://webhooks.gitter.im/e/b78839c0066e95e47dab
# on_success: change # options: [always|never|change] default: always
# on_failure: always # options: [always|never|change] default: always
# on_start: false # default: false