-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (36 loc) · 1.25 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
# 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 a recent 7.x version
- '7.0'
# aliased to a recent 7.1.x version
- '7.1'
# aliased to a recent 7.1.x version
- '7.2'
# 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: '7.0'
env:
- 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
# 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
script:
- vendor/bin/phpcs --standard=phpcs.xml
- vendor/bin/phpunit --configuration phpunit.xml --coverage-text
- vendor/bin/phpunit --configuration phpunit.xml --coverage-clover=coverage.xml
after_success:
- bash <(curl -s https://codecov.io/bash)