diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-08-31 22:19:35 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-09-13 19:02:25 +0200 |
commit | 18983f03b84d4d4a4ebbe62a7cf7f22e22807b61 (patch) | |
tree | cc15868ce5f6f8cb13825dfbe2a6d34a4e765d5e /Makefile | |
parent | 1f9db32c67f2a0116526e2bc6a06b830ad078db3 (diff) |
Test GH actions flow
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 21 insertions, 6 deletions
@@ -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 |