Skip to content
Snippets Groups Projects
Unverified Commit a624f5b0 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Add test scripts to composer.json

parent c66068f9
No related branches found
No related tags found
No related merge requests found
......@@ -97,8 +97,7 @@ script:
# - sh -c "if [ '$TEST_JS' = 'TRUE' ]; then cat ./coverage/*/lcov.info | ./node_modules/coveralls/bin/coveralls.js; fi"
# Run PHP tests
- cd tests
- ../vendor/bin/phpunit --configuration phpunit.xml --fail-on-warning
- composer run test
- if [[ "$PHP_COVERAGE" = "TRUE" ]]; then wget https://scrutinizer-ci.com/ocular.phar;
fi
- if [[ "$PHP_COVERAGE" = "TRUE" ]]; then php ocular.phar code-coverage:upload --format=php-clover
......
......@@ -34,6 +34,11 @@
"christophwurst/nextcloud": "14.0.3",
"christophwurst/nextcloud_testing": "0.5.1"
},
"scripts": {
"test": "phpunit -c tests/phpunit.xml --fail-on-warning",
"test:unit": "phpunit -c tests/phpunit.xml tests --fail-on-warning",
"test:unit:dev": "phpunit -c tests/phpunit.xml tests --no-coverage --fail-on-warning"
},
"suggest": {
"phan/phan": "^0.10.0"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment