summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-08-31 22:19:35 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-09-13 19:02:25 +0200
commit18983f03b84d4d4a4ebbe62a7cf7f22e22807b61 (patch)
treecc15868ce5f6f8cb13825dfbe2a6d34a4e765d5e /Makefile
parent1f9db32c67f2a0116526e2bc6a06b830ad078db3 (diff)
Test GH actions flow
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 21 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 6a82237c3..c6194206e 100644
--- a/Makefile
+++ b/Makefile
@@ -186,16 +186,31 @@ endif
tar -czf $(appstore_package_name).tar.gz -C $(appstore_build_directory)/../ $(app_name)
+.PHONY: js-test
+js-test:
+ cd js && $(npm) run test
+
+.PHONY: php-test-dependencies
+php-test-dependencies:
+ $(composer) update --prefer-dist
+
+.PHONY: unit-test
+unit-test:
+ ./vendor/phpunit/phpunit/phpunit -c phpunit.xml --coverage-clover build/php-unit.clover
+
+# \Test\TestCase is only allowed to access the db if TRAVIS environment variable is set
+.PHONY: integration-test
+integration-test:
+ env TRAVIS=1 ./vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml
+
# Command for running JS and PHP tests. Works for package.json files in the js/
# and root directory. If phpunit is not installed systemwide, a copy is fetched
# from the internet
.PHONY: test
-test:
- $(composer) update --prefer-dist
- cd js && $(npm) run test
- ./vendor/phpunit/phpunit/phpunit -c phpunit.xml --coverage-clover build/php-unit.clover
- # \Test\TestCase is only allowed to access the db if TRAVIS environment variable is set
- env TRAVIS=1 ./vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml
+test: php-test-dependencies
+ $(MAKE) unit-test
+ $(MAKE) integration-test
$(MAKE) phpcs
$(MAKE) phpstan
+ $(MAKE) js-test
./bin/tools/generate_authors.php