-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
43 lines (35 loc) · 1.05 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
sudo: false
language: php
php:
- '7.1'
- '7.2'
- nightly
matrix:
include:
- php: '7.1'
env: dependencies=lowest
- php: '7.1'
env: dependencies=highest
- php: '7.2'
env: dependencies=lowest
- php: '7.2'
env: dependencies=highest
- php: nightly
env: dependencies=lowest
- php: nightly
env: dependencies=highest
before_install:
- phpenv config-rm xdebug.ini || echo "No xdebug config."
install:
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar
- chmod +x php-coveralls.phar
before_script:
- travis_retry composer self-update
- if [ -z "$dependencies" ]; then travis_retry composer install; fi;
- if [ "$dependencies" = "lowest" ]; then travis_retry composer update --prefer-lowest -n; fi;
- if [ "$dependencies" = "highest" ]; then travis_retry composer update -n; fi;
script:
- phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
- vendor/bin/phpcs -s
after_success:
- travis_retry php php-coveralls.phar