fix working directory of codecov

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2020-03-31 16:10:19 +02:00
parent 6e34f162b7
commit c8dd8d93c1
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
3 changed files with 11 additions and 15 deletions

View File

@ -39,9 +39,5 @@ jobs:
working-directory: nextcloud/apps/calendar working-directory: nextcloud/apps/calendar
run: composer run test run: composer run test
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
uses: codecov/codecov-action@v1 working-directory: nextcloud/apps/calendar
with: run: curl -s https://codecov.io/bash | bash -s - -t ${{ secrets.CODECOV_TOKEN }} -F php -f clover.unit.xml -Z
token: ${{ secrets.CODECOV_TOKEN }}
file: ./nextcloud/apps/calendar/tests/php/clover.unit.xml
flags: php
fail_ci_if_error: true

View File

@ -15,6 +15,6 @@
"scripts": { "scripts": {
"lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;", "lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;",
"phan": "phan --allow-polyfill-parser -k .phan/config.php", "phan": "phan --allow-polyfill-parser -k .phan/config.php",
"test": "phpunit --configuration tests/php/phpunit.unit.xml --fail-on-warning" "test": "phpunit --configuration phpunit.unit.xml --fail-on-warning"
} }
} }

View File

@ -1,23 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<phpunit bootstrap="unit/bootstrap.php" <phpunit bootstrap="tests/php/unit/bootstrap.php"
verbose="true" verbose="true"
timeoutForSmallTests="900" timeoutForSmallTests="900"
timeoutForMediumTests="900" timeoutForMediumTests="900"
timeoutForLargeTests="900" timeoutForLargeTests="900"
> >
<testsuite name='Calendar app tests'> <testsuite name='Calendar app tests'>
<directory suffix='test.php'>unit</directory> <directory suffix='test.php'>./tests/php/unit</directory>
<directory suffix='Test.php'>unit</directory> <directory suffix='Test.php'>./tests/php/unit</directory>
</testsuite> </testsuite>
<!-- filters for code coverage --> <!-- filters for code coverage -->
<filter> <filter>
<whitelist> <whitelist>
<directory suffix=".php">../../</directory> <directory suffix=".php">./</directory>
<exclude> <exclude>
<directory suffix=".php">../calendar/appinfo</directory> <directory suffix=".php">./appinfo</directory>
<directory suffix=".php">../calendar/l10n</directory> <directory suffix=".php">./l10n</directory>
<directory suffix=".php">../calendar/templates</directory> <directory suffix=".php">./templates</directory>
<directory suffix=".php">../calendar/tests</directory> <directory suffix=".php">./tests</directory>
</exclude> </exclude>
</whitelist> </whitelist>
</filter> </filter>