This commit is contained in:
Ingo Schommer 2017-04-03 23:04:10 +00:00 committed by GitHub
commit 575c3908f3
4 changed files with 42 additions and 14 deletions

2
.codecov.yml Normal file
View File

@ -0,0 +1,2 @@
codecov:
branch: master

View File

@ -4,27 +4,32 @@ sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0
env:
- DB=MYSQL CORE_RELEASE=master
global:
- CORE_RELEASE=master
matrix:
include:
- php: 5.5
env: DB=MYSQL PHPUNIT_TEST=1
- php: 5.5
env: DB=PGSQL PHPUNIT_TEST=1
- php: 5.5
env: DB=SQLITE PHPUNIT_TEST=1
- php: 5.6
env: DB=PGSQL CORE_RELEASE=master
env: DB=MYSQL PDO=1 PHPUNIT_TEST=1
- php: 7.0
env: DB=PGSQL CORE_RELEASE=master
env: DB=MYSQL PDO=1 PHPUNIT_COVERAGE_TEST=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
- composer self-update || true
- phpenv rehash
- phpenv config-rm xdebug.ini
- git clone -b "pulls/alias-and-installer-branch" git://github.com/chillu/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- cd ~/builds/ss
script:
- vendor/bin/phpunit reports/tests
- "if [ \"$PHPUNIT_TEST\" = \"1\" ]; then vendor/bin/phpunit reports/tests; fi"
- "if [ \"$PHPUNIT_COVERAGE_TEST\" = \"1\" ]; then phpdbg -qrr vendor/bin/phpunit reports/tests --coverage-clover=coverage.xml; fi"
- "if [ \"$PHPUNIT_COVERAGE_TEST\" = \"1\" ]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi"

View File

@ -1,6 +1,7 @@
# Reports
[![Build Status](https://secure.travis-ci.org/silverstripe/silverstripe-reports.png?branch=master)](http://travis-ci.org/silverstripe/silverstripe-reports)
[![codecov](https://codecov.io/gh/silverstripe/silverstripe-reports/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-reports)
## Introduction

20
phpunit.xml.dist Normal file
View File

@ -0,0 +1,20 @@
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
<testsuite name="Default">
<directory>tests</directory>
</testsuite>
<listeners>
<listener class="SilverStripe\Dev\TestListener" />
</listeners>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">.</directory>
<exclude>
<directory suffix=".php">tests/</directory>
</exclude>
</whitelist>
</filter>
</phpunit>