silverstripe-environmentcheck/.travis.yml
2018-05-03 16:00:19 +12:00

36 lines
922 B
YAML

# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
sudo: false
language: php
php:
- 5.4
- 5.5
env:
- DB=MYSQL CORE_RELEASE=3.5
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
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
after_success:
- if [[ $COVERAGE ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi