-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (39 loc) · 1.28 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
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
# example: https://github.com/travis-ci-examples/php
language: php
php:
# aliased to the lowest 5.5.x version
- '5.5'
# aliased to a recent 5.6.x version
- '5.6'
# aliased to a recent 7.x version
- '7.0'
# aliased to a recent 7.1.x version
- '7.1'
# aliased to a recent hhvm version
- hhvm
- nightly
# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
## Cache composer
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true # Will finish as soon as a job has failed, or when the only jobs left allow failures.
include:
- php: '5.5'
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
allow_failures:
- php: 7.0
- php: 7.1
- php: hhvm
# execute any number of scripts before the test run, custom env's are available as variables
before_script:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
# omitting "script:" will default to phpunit
# use the $DB env variable to determine the phpunit.xml to use
script:
- vendor/bin/phpcs --standard=psr2 src/
- vendor/bin/phpunit --configuration phpunit.xml --coverage-text