Skip to content

Commit

Permalink
Remove old CodeClimate test reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
REBELinBLUE committed Jun 6, 2018
1 parent 235b94e commit f8d8fc6
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 545 deletions.
48 changes: 25 additions & 23 deletions .travis.yml
Expand Up @@ -17,21 +17,21 @@ cache:
- $HOME/.composer/cache

matrix:
include:
- php: 7.0
env: DB=mysql
services:
- mysql
- php: 7.0
env: DB=maria
addons:
mariadb: 10.1
- php: 7.0
env: DB=pgsql
addons:
postgresql: "9.3"
services:
- postgresql
include:
- php: 7.0
env: DB=mysql
services:
- mysql
- php: 7.0
env: DB=maria
addons:
mariadb: 10.1
- php: 7.0
env: DB=pgsql
addons:
postgresql: "9.3"
services:
- postgresql

before_install:
- if [[ "$TRAVIS_PHP_VERSION" != "7.1" ]]; then
Expand All @@ -43,6 +43,12 @@ install:
- travis_retry npm install

before_script:
- |
if [[ "$TRAVIS_PHP_VERSION" == "7.1" ]]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
fi
- cp -f $TRAVIS_BUILD_DIR/tests/.env.travis $TRAVIS_BUILD_DIR/.env
- make permissions
- make travis
Expand All @@ -64,17 +70,13 @@ script:
- php artisan app:version

after_script:
- find $TRAVIS_BUILD_DIR/storage/logs/*.log -type f -print -exec cat {} \;
- cat $TRAVIS_BUILD_DIR/.env

after_success:
- |
if [[ -f storage/app/tmp/coverage.xml ]]; then
travis_retry composer install --no-interaction --prefer-dist --no-suggest --quiet
mv $TRAVIS_BUILD_DIR/storage/app/tmp/coverage.xml $TRAVIS_BUILD_DIR/coverage.xml
php vendor/bin/test-reporter --coverage-report=$TRAVIS_BUILD_DIR/coverage.xml
if [[ -f clover.xml ]]; then
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
bash <(curl -s https://codecov.io/bash)
fi
- find $TRAVIS_BUILD_DIR/storage/logs/*.log -type f -print -exec cat {} \;
- cat $TRAVIS_BUILD_DIR/.env

notifications:
email: false
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -197,7 +197,7 @@ travis:
endif

# PHPUnit for Travis
ifeq "$(TRAVIS_PHP_VERSION)" "7.1.0"
ifeq "$(TRAVIS_PHP_VERSION)" "7.1"
phpunit-ci:
# phpdbg isn't working on travis, hitting the max open files limit
@php vendor/bin/phpunit --coverage-text=/dev/null --coverage-php=storage/app/tmp/unit.cov \
Expand All @@ -207,8 +207,8 @@ phpunit-ci:
@php vendor/bin/phpunit --coverage-text=/dev/null --coverage-php=storage/app/tmp/integration.cov \
--log-junit=storage/app/tmp/integration.junit.xml --testsuite "Integration Tests"
@php vendor/bin/phpcov merge storage/app/tmp/ \
--html storage/app/tmp/coverage/ --clover storage/app/tmp/coverage.xml
@php vendor/bin/phpjunitmerge --names="*.junit.xml" storage/app/tmp/ storage/app/tmp/junit.xml
--html storage/app/tmp/coverage/ --clover clover.xml
@php vendor/bin/phpjunitmerge --names="*.junit.xml" storage/app/tmp/ junit.xml
@rm -f storage/app/tmp/*.cov storage/app/tmp/*.junit.xml
else
phpunit-ci:
Expand Down
1 change: 0 additions & 1 deletion composer.json
Expand Up @@ -52,7 +52,6 @@
"andreas-weber/php-junit-merge": "^1.0",
"barryvdh/laravel-ide-helper": "^2.1",
"block8/php-docblock-checker": "^1.1",
"codeclimate/php-test-reporter": "^0.4.4",
"filp/whoops": "^2.0",
"friendsofphp/php-cs-fixer": "^2.0",
"fzaninotto/faker": "~1.5",
Expand Down

0 comments on commit f8d8fc6

Please sign in to comment.