silverstripe-environmentcheck/.travis.yml

36 lines
922 B
YAML
Raw Normal View History

2015-11-19 02:19:06 +01:00
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
sudo: false
2015-09-10 23:13:48 +02:00
language: php
php:
2015-11-19 02:19:06 +01:00
- 5.4
- 5.5
2015-09-10 23:13:48 +02:00
env:
- DB=MYSQL CORE_RELEASE=3.5
2015-11-19 02:19:06 +01:00
matrix:
include:
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3
- php: 7.0
env: DB=MYSQL CORE_RELEASE=3.6
- php: 7.1
env: DB=PGSQL CORE_RELEASE=3.6 COVERAGE=1
2015-09-10 23:13:48 +02:00
before_script:
- composer self-update || true
- 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
- composer install
script:
- if [[ $COVERAGE ]]; then vendor/bin/phpunit --coverage-clover coverage.xml environmentcheck/tests; fi
- if [[ ! $COVERAGE ]]; then vendor/bin/phpunit environmentcheck/tests; fi
2015-09-10 23:13:48 +02:00
after_success:
- if [[ $COVERAGE ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi