mirror of
https://github.com/chenasraf/nextcloud-pantry.git
synced 2026-05-17 17:28:01 +00:00
build: fix test exit code
This commit is contained in:
6
Makefile
6
Makefile
@@ -243,9 +243,13 @@ test: composer
|
||||
fi; \
|
||||
echo "\x1b[32mUsing Nextcloud root: $$NC_ROOT\x1b[0m"; \
|
||||
NEXTCLOUD_ROOT="$$NC_ROOT" $(CURDIR)/vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml; \
|
||||
UNIT_EXIT=$$?; \
|
||||
INTEG_EXIT=0; \
|
||||
if [ -f tests/phpunit.integration.xml ]; then \
|
||||
NEXTCLOUD_ROOT="$$NC_ROOT" $(CURDIR)/vendor/phpunit/phpunit/phpunit -c tests/phpunit.integration.xml; \
|
||||
fi
|
||||
INTEG_EXIT=$$?; \
|
||||
fi; \
|
||||
exit $$((UNIT_EXIT + INTEG_EXIT))
|
||||
|
||||
# test-docker:
|
||||
# - Run PHP unit tests inside a Nextcloud Docker container
|
||||
|
||||
Reference in New Issue
Block a user