forked from silverstripe/silverstripe-omnipay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (26 loc) · 864 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
language: php
php:
- 5.3
env:
- DB=MYSQL CORE_RELEASE=3.1
matrix:
include:
- php: 5.5
env: DB=PGSQL CORE_RELEASE=3.1
- php: 5.4
env: DB=SQLITE CORE_RELEASE=3.1 COVERAGE=1
before_script:
- composer self-update
- phpenv rehash
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- cd ~/builds/ss
script:
- "if [ \"$COVERAGE\" = \"\" ]; then phpunit -c omnipay/phpunit.xml.dist; fi"
- "if [ \"$COVERAGE\" = \"1\" ]; then phpunit -c omnipay/phpunit.xml.dist --coverage-clover omnipay/coverage.xml; fi"
after_script:
- if [ "$COVERAGE" = "1" ]; then
- cd omnipay
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload -v --format=php-clover coverage.xml
- fi