-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 1.03 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
language: php
php:
- 5.5
- 5.6
- 7.0
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:
- 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)