Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LRN-43664 One way of doing all testing at once #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ TARGETS = all build devbuild prodbuild \
ifneq (,$(DOCKER))
# Re-run the make command in a container
DKR = docker container run -t --rm \
-v $(CURDIR):/srv/sdk/php:z,delegated \
-v $(CURDIR)/v$(PHP_VERSION):/srv/sdk/php:z,delegated \
-v $(CURDIR)/.git:/srv/sdk/php/.git:z,delegated \
-v $(CURDIR)/src:/srv/sdk/php/src:z,delegated \
-v $(CURDIR)/tests:/srv/sdk/php/tests:z,delegated \
-v $(CURDIR)/composer.json:/srv/sdk/php/composer.json:delegated \
-v $(CURDIR)/Makefile:/srv/sdk/php/Makefile:delegated \
-v $(CURDIR)/phpunit.xml:/srv/sdk/php/phpunit.xml:delegated \
-v $(CURDIR)/bootstrap.php:/srv/sdk/php/bootstrap.php:delegated \
-v lrn-sdk-php_cache:/root/.composer \
-w /srv/sdk/php \
-e LRN_SDK_NO_DOCKER=1 \
Expand All @@ -49,6 +56,17 @@ docker-build:
-t $(IMAGE) .
.PHONY: docker-build lrn-test-all lrn-test-clean

# LRN targets for SDK testing

lrn-test-all: $(addprefix lrn-test-v,$(SUPPORTED_PHP_VERSIONS))

lrn-test-v%:
$(MAKE) -e PHP_VERSION=$* test

lrn-clean-all: $(addprefix lrn-clean-v,$(SUPPORTED_PHP_VERSIONS))

lrn-clean-v%:
$(MAKE) -e PHP_VERSION=$* clean

else
DIST_PREFIX = learnosity_sdk-
Expand Down
Loading