From 6b5b64063b161a87fab40e7c25a5199ea814c7c1 Mon Sep 17 00:00:00 2001 From: Christian Neff Date: Mon, 3 Aug 2015 15:35:03 +0200 Subject: [PATCH] Improved .travis.yml --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 455eea4..a6930af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,9 +21,9 @@ install: script: phpunit --coverage-text --coverage-clover=coverage.clover after_script: - - php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover - - php vendor/bin/test-reporter --coverage-report=coverage.clover --stdout > codeclimate.json - - "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports" + - if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi + - if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/test-reporter --coverage-report=coverage.clover --stdout > codeclimate.json; fi + - "if [ \"$TRAVIS_PHP_VERSION\" != \"7.0\" ] && [ \"$TRAVIS_PHP_VERSION\" != \"hhvm\" ]; then curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports; fi" sudo: false