mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 15:05:40 +00:00
Merge branch '1.1' into 1.2
This commit is contained in:
commit
449a265301
18
.travis.yml
18
.travis.yml
@ -7,22 +7,18 @@ language: php
|
||||
php:
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
|
||||
env:
|
||||
- DB=MYSQL CORE_RELEASE=3.2
|
||||
- DB=MYSQL CORE_RELEASE=3.5
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- php: 5.6
|
||||
env: DB=MYSQL CORE_RELEASE=3
|
||||
- php: 5.6
|
||||
env: DB=MYSQL CORE_RELEASE=3.1
|
||||
- php: 5.6
|
||||
env: DB=PGSQL CORE_RELEASE=3.2
|
||||
allow_failures:
|
||||
- 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
|
||||
@ -32,4 +28,8 @@ before_script:
|
||||
- composer install
|
||||
|
||||
script:
|
||||
- vendor/bin/phpunit environmentcheck/tests
|
||||
- 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
|
||||
|
10
readme.md
10
readme.md
@ -1,10 +1,10 @@
|
||||
# SilverStripe Environment Checker Module
|
||||
|
||||
[](https://travis-ci.org/silverstripe-labs/silverstripe-environmentcheck)
|
||||
[](https://scrutinizer-ci.com/g/silverstripe-labs/silverstripe-environmentcheck)
|
||||
[](https://scrutinizer-ci.com/g/silverstripe-labs/silverstripe-environmentcheck)
|
||||
[](https://packagist.org/packages/silverstripe/environmentcheck)
|
||||
[](LICENSE.md)
|
||||
[](https://travis-ci.org/silverstripe/silverstripe-environmentcheck)
|
||||
[](https://scrutinizer-ci.com/g/silverstripe/silverstripe-environmentcheck/?branch=master)
|
||||
[](https://codecov.io/gh/silverstripe/comment-notifications)
|
||||
[](https://packagist.org/packages/silverstripe/environmentalcheck)
|
||||
[](LICENSE.md)
|
||||
|
||||
This module adds an API for running environment checks to your API.
|
||||
|
||||
|
@ -5,6 +5,8 @@
|
||||
*/
|
||||
class DatabaseCheckTest extends SapphireTest
|
||||
{
|
||||
protected $usesDatabase = true;
|
||||
|
||||
public function testCheckReportsValidConnection()
|
||||
{
|
||||
$check = new DatabaseCheck();
|
||||
|
Loading…
x
Reference in New Issue
Block a user