mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Add Codecov integration and Codecov/Scrutinizer badges to readme
This commit is contained in:
parent
eebc603530
commit
04188816c6
21
.travis.yml
21
.travis.yml
@ -1,4 +1,4 @@
|
|||||||
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
|
# See https://github.com/silverstripe/silverstripe-travis-support for setup details
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
@ -15,8 +15,8 @@ env:
|
|||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- php: 5.6
|
- php: 7.1
|
||||||
env: DB=MYSQL CORE_RELEASE=3
|
env: DB=MYSQL CORE_RELEASE=3 COVERAGE="--coverage-clover=coverage.xml"
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
env: DB=MYSQL CORE_RELEASE=3.1
|
env: DB=MYSQL CORE_RELEASE=3.1
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
@ -28,10 +28,17 @@ matrix:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- composer self-update || true
|
- composer self-update || true
|
||||||
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
|
- git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support
|
||||||
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
|
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/build/ss
|
||||||
- cd ~/builds/ss
|
- cd ~/build/ss
|
||||||
- composer install
|
- composer install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- vendor/bin/phpunit dms/tests
|
- vendor/bin/phpunit "$COVERAGE" dms/tests
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- >
|
||||||
|
test "$COVERAGE" != ""
|
||||||
|
&& mv coverage.xml ~/build/$TRAVIS_REPO_SLUG
|
||||||
|
&& cd ~/build/$TRAVIS_REPO_SLUG
|
||||||
|
&& bash <(curl -s https://codecov.io/bash)
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
# Document Management Module (DMS)
|
# Document Management Module (DMS)
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.org/silverstripe/silverstripe-dms.png?branch=master)](https://travis-ci.org/silverstripe/silverstripe-dms)
|
[![Build status](https://travis-ci.org/silverstripe/silverstripe-dms.png?branch=master)](https://travis-ci.org/silverstripe/silverstripe-dms)
|
||||||
|
[![Code quality](https://scrutinizer-ci.com/g/silverstripe/silverstripe-dms/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-dms/?branch=master)
|
||||||
|
[![Code coverage](https://codecov.io/gh/silverstripe/silverstripe-dms/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-dms)
|
||||||
|
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user