From 39910c88303c34a63430bbb3a0e9174162e73c06 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Tue, 7 Feb 2017 10:14:16 +1300 Subject: [PATCH] FIX External code coverage not finding git repository in Travis builds --- .travis.yml | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 73e12b4..202ee53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,5 +30,6 @@ script: after_success: - > test "$COVERAGE" = "1" + && cd externalurlfield && wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload -v --format=php-clover ~/coverage.xml diff --git a/README.md b/README.md index 2bc342d..e499add 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SilverStripe External URL Field -[![Build Status](https://travis-ci.org/burnbright/silverstripe-externalurlfield.svg?branch=master)](https://travis-ci.org/burnbright/silverstripe-externalurlfield) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/burnbright/silverstripe-externalurlfield/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/burnbright/silverstripe-externalurlfield/?branch=master) +[![Build Status](https://travis-ci.org/burnbright/silverstripe-externalurlfield.svg?branch=master)](https://travis-ci.org/burnbright/silverstripe-externalurlfield) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/burnbright/silverstripe-externalurlfield/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/burnbright/silverstripe-externalurlfield/?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/burnbright/silverstripe-externalurlfield/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/burnbright/silverstripe-externalurlfield/?branch=master) Provides a `DBField` and `FormField` for handling external URLs.