Upload coverage data
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
sudo: false
|
|
||||||
language: php
|
language: php
|
||||||
services:
|
services:
|
||||||
- mysql
|
- mysql
|
||||||
@@ -9,9 +8,6 @@ env:
|
|||||||
- CORE_BRANCH=master DB=sqlite
|
- CORE_BRANCH=master DB=sqlite
|
||||||
- CORE_BRANCH=stable11 DB=sqlite
|
- CORE_BRANCH=stable11 DB=sqlite
|
||||||
|
|
||||||
matrix:
|
|
||||||
fast_finish: true
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# install core
|
# install core
|
||||||
- cd ../
|
- cd ../
|
||||||
@@ -35,4 +31,4 @@ after_failure:
|
|||||||
- cat ../../data/nextcloud.log
|
- cat ../../data/nextcloud.log
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|||||||
9
Makefile
9
Makefile
@@ -72,14 +72,15 @@ appstore: clean-build build
|
|||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
mkdir -p build/
|
||||||
cd js && $(npm) run test
|
cd js && $(npm) run test
|
||||||
ifeq (, $(shell which phpunit 2> /dev/null))
|
ifeq (, $(shell which phpunit 2> /dev/null))
|
||||||
@echo "No phpunit command available, downloading a copy from the web"
|
@echo "No phpunit command available, downloading a copy from the web"
|
||||||
mkdir -p $(build_tools_directory)
|
mkdir -p $(build_tools_directory)
|
||||||
curl -sSL https://phar.phpunit.de/phpunit.phar -o $(build_tools_directory)/phpunit.phar
|
curl -sSL https://phar.phpunit.de/phpunit.phar -o $(build_tools_directory)/phpunit.phar
|
||||||
php $(build_tools_directory)/phpunit.phar -c tests/phpunit.xml --coverage-clover build/php-unit.clover
|
php $(build_tools_directory)/phpunit.phar -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml
|
||||||
php $(build_tools_directory)/phpunit.phar -c tests/phpunit.integration.xml --coverage-clover build/php-integration.clover
|
php $(build_tools_directory)/phpunit.phar -c tests/phpunit.integration.xml --coverage-clover build/php-integration.coverage.xml
|
||||||
else
|
else
|
||||||
phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.clover
|
phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml
|
||||||
phpunit -c tests/phpunit.integration.xml --coverage-clover build/php-unit.clover
|
phpunit -c tests/phpunit.integration.xml --coverage-clover build/php-integration.coverage.xml
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</testsuites>
|
</testsuites>
|
||||||
<filter>
|
<filter>
|
||||||
<whitelist>
|
<whitelist>
|
||||||
<directory suffix=".php">./lib</directory>
|
<directory suffix=".php">./../lib</directory>
|
||||||
</whitelist>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</testsuites>
|
</testsuites>
|
||||||
<filter>
|
<filter>
|
||||||
<whitelist>
|
<whitelist>
|
||||||
<directory suffix=".php">./lib</directory>
|
<directory suffix=".php">./../lib</directory>
|
||||||
</whitelist>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|||||||
Reference in New Issue
Block a user