summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml16
-rw-r--r--Makefile4
2 files changed, 8 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml
index 9de0cfd1b..ee3c4e915 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -52,16 +52,12 @@ before_script:
- cd apps/news
script:
- # unit tests
- - phpunit -c phpunit.xml --coverage-clover coverage.clover
- - phpunit -c phpunit.integration.xml
- - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- - cd js
- - gulp karma
- # acceptance tests
- #- webdriver-manager update
- # debug section to check what went wrong
- - cd ..
+ - make test
+
+after_success:
+ - php ocular.phar code-coverage:upload --format=php-clover build/php-unit.clover
+
+after_failure:
- sudo cat ../../data/owncloud.log
deploy:
diff --git a/Makefile b/Makefile
index e142213c2..7a870d8b4 100644
--- a/Makefile
+++ b/Makefile
@@ -167,8 +167,8 @@ ifeq (, $(shell which phpunit 2> /dev/null))
@echo "No phpunit command available, downloading a copy from the web"
mkdir -p $(build_tools_directory)
curl -sSL https://phar.phpunit.de/phpunit.phar -o $(build_tools_directory)/phpunit.phar
- php $(build_tools_directory)/phpunit.phar -c phpunit.xml
- php $(build_tools_directory)/phpunit.phar -c phpunit.integration.xml
+ php $(build_tools_directory)/phpunit.phar -c phpunit.xml --coverage-clover build/php-unit.clover
+ php $(build_tools_directory)/phpunit.phar -c phpunit.integration.xml --coverage-clover build/php-integration.clover
else
phpunit -c phpunit.xml
phpunit -c phpunit.integration.xml