Move to codecov
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
464f75ca29
commit
75729110c5
8
.github/workflows/phpunit.yml
vendored
8
.github/workflows/phpunit.yml
vendored
|
@ -65,17 +65,15 @@ jobs:
|
||||||
|
|
||||||
- name: PHPUnit & coverage
|
- name: PHPUnit & coverage
|
||||||
working-directory: apps/${{ env.APP_NAME }}
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
run: ./vendor/phpunit/phpunit/phpunit --coverage-clover clover.xml -c phpunit.xml
|
run: ./vendor/phpunit/phpunit/phpunit --coverage-clover coverage.xml -c phpunit.xml
|
||||||
|
|
||||||
- name: PHPUnit integration
|
- name: PHPUnit integration
|
||||||
working-directory: apps/${{ env.APP_NAME }}
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
run: ./vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml
|
run: ./vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml
|
||||||
|
|
||||||
- name: Generate coverage
|
- name: Upload coverage
|
||||||
working-directory: apps/${{ env.APP_NAME }}
|
working-directory: apps/${{ env.APP_NAME }}
|
||||||
run: |
|
run: bash <(curl -s https://codecov.io/bash)
|
||||||
wget https://scrutinizer-ci.com/ocular.phar
|
|
||||||
php ocular.phar code-coverage:upload --format=php-clover clover.xml
|
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -127,5 +127,5 @@ appstore: clean lint build-js-production
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: composer
|
test: composer
|
||||||
$(CURDIR)/vendor/phpunit/phpunit/phpunit --coverage-clover clover.xml -c phpunit.xml
|
$(CURDIR)/vendor/phpunit/phpunit/phpunit -c phpunit.xml
|
||||||
$(CURDIR)/vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml
|
$(CURDIR)/vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml
|
||||||
|
|
Loading…
Reference in a new issue