-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
41 lines (34 loc) · 1.11 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
language: php
dist: trusty
php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
env:
global:
- setup=basic
matrix:
include:
- php: 5.5
env: setup=lowest
- php: 5.5
env: setup=stable
- php: 5.6
env: setup=phar
install:
- if [[ $setup = 'basic' ]]; then travis_retry composer install --no-interaction --prefer-source; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-lowest --prefer-stable; fi
- if [[ $setup = 'phar' ]]; then travis_retry composer install --no-interaction --prefer-source; fi
before_script:
- phpenv config-rm xdebug.ini
- if [[ $setup = 'phar' ]]; then php build/build.php; fi
script:
- if [[ $setup != 'phar' ]]; then vendor/bin/phpunit --configuration phpunit.xml --coverage-clover clover.xml; fi
- if [[ $setup = 'phar' ]]; then vendor/bin/phpunit --configuration phpunit.xml --bootstrap build/autoload.php; fi
after_script:
- bash <(curl -s https://codecov.io/bash)