-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
41 lines (33 loc) · 835 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
dist: trusty
sudo: false
language: php
env:
global:
- COMPOSER_ARGS="--ansi --prefer-dist --no-interaction --no-suggest --no-progress --optimize-autoloader"
- DEPS="phpunit/phpunit squizlabs/php_codesniffer php-coveralls/php-coveralls"
git:
depth: 3
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true
allow_failures:
- php: hhvm
- php: nightly
include:
- php: 5.6
- php: 7.0
- php: 7.1
env: ANALYSIS="true"
- php: 7.2
- php: 7.3
- php: hhvm
- php: nightly
before_script:
- composer require --dev $COMPOSER_ARGS $DEPS
script:
- php vendor/bin/phpunit
- if [[ "$ANALYSIS" == "true" ]]; then php vendor/bin/phpcs ; fi
after_script:
- if [[ "$ANALYSIS" == "true" && -f ./build/logs/clover.xml ]]; then php vendor/bin/php-coveralls -v; fi