-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
43 lines (35 loc) · 922 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
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache
env:
global:
- COMPOSER_ARGS="--no-interaction"
matrix:
fast_finish: true
include:
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=latest
- php: 7.2
- php: nightly
allow_failures:
- php: nightly
before_install:
- composer self-update
install:
- mkdir -p build/logs
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- travis_retry composer install $COMPOSER_ARGS
- composer show --installed
script:
- ./vendor/bin/phpunit --coverage-clover=build/logs/clover.xml
- ./vendor/bin/phpcs
- ./vendor/bin/phpstan analyze -c phpstan.neon --level=7 src/
after_success:
- travis_retry php vendor/bin/php-coveralls