Skip to content

Commit

Permalink
Replace scrutinizer with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Aug 22, 2020
1 parent 1b604e8 commit 6248d2f
Show file tree
Hide file tree
Showing 6 changed files with 937 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -79,3 +79,6 @@ jobs:
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
if: matrix.check == 'backward-compatibility-check'
- run: make ${{ matrix.check }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_RUN_LOCALLY: ${{ secrets.COVERALLS_RUN_LOCALLY }}
12 changes: 0 additions & 12 deletions .scrutinizer.yml

This file was deleted.

4 changes: 1 addition & 3 deletions Makefile
Expand Up @@ -44,9 +44,7 @@ psalm: ## Run static analysis (Psalm)

unit: ## Run tests
$(DOCKER_RUN) vendor/bin/phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml

unit-ci: unit
if [ -f ./build/logs/clover.xml ]; then wget https://scrutinizer-ci.com/ocular.phar && sleep 3 && php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi
$(DOCKER_RUN) test -f ./build/logs/clover.xml && vendor/bin/php-coveralls -v --coverage_clover ./build/logs/clover.xml --json_path ./build/logs/coveralls-upload.json || true

infection: ## Run mutation testing
$(DOCKER_RUN) vendor/bin/infection --ansi --min-msi=100 --min-covered-msi=100 --threads=$(shell nproc)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -3,7 +3,7 @@
![Continuous Integration](https://github.com/wyrihaximus/php-test-utilities/workflows/Continuous%20Integration/badge.svg)
[![Latest Stable Version](https://poser.pugx.org/wyrihaximus/test-utilities/v/stable.png)](https://packagist.org/packages/wyrihaximus/test-utilities)
[![Total Downloads](https://poser.pugx.org/wyrihaximus/test-utilities/downloads.png)](https://packagist.org/packages/wyrihaximus/test-utilities/stats)
[![Code Coverage](https://scrutinizer-ci.com/g/WyriHaximus/php-test-utilities/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/WyriHaximus/php-test-utilities/?branch=master)
[![Code Coverage](https://coveralls.io/repos/github/WyriHaximus/php-test-utilities/badge.svg?branchmaster)](https://coveralls.io/github/WyriHaximus/php-test-utilities?branch=master)
[![Type Coverage](https://shepherd.dev/github/WyriHaximus/php-test-utilities/coverage.svg)](https://shepherd.dev/github/WyriHaximus/php-test-utilities)
[![License](https://poser.pugx.org/wyrihaximus/test-utilities/license.png)](https://packagist.org/packages/wyrihaximus/test-utilities)

Expand Down
2 changes: 2 additions & 0 deletions composer.json
Expand Up @@ -16,6 +16,7 @@
"infection/infection": "^0.16.0 || ^0.17.0",
"maglnet/composer-require-checker": "^2.0",
"nunomaduro/collision": "^4.0 || ^3.0",
"php-coveralls/php-coveralls": "^2.2",
"php-parallel-lint/php-console-highlighter": "^0.4.0 || ^0.5",
"php-parallel-lint/php-parallel-lint": "^1.1",
"phpspec/prophecy": "^1.10",
Expand Down Expand Up @@ -43,6 +44,7 @@
"friendsofphp/php-cs-fixer",
"icanhazstring/composer-unused",
"infection/infection",
"php-coveralls/php-coveralls",
"php-parallel-lint/php-console-highlighter",
"php-parallel-lint/php-parallel-lint",
"maglnet/composer-require-checker",
Expand Down

0 comments on commit 6248d2f

Please sign in to comment.