X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/dd315a23e98b926d4d15b9d05f1aaa1e211548a4..c666d78642ac6af933bfee6bca45b0815a2ed86e:/Makefile diff --git a/Makefile b/Makefile index 25700636..4a8854c3 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ ITERATION?=1 TARGETS?="centos7 debian8 debian9 debian10 ubuntu1404 ubuntu1604 ubuntu1804" DESCRIPTION=Arvados Workbench2 - Arvados is a free and open source platform for big data science. -MAINTAINER="Arvados Package Maintainers " +MAINTAINER=Arvados Package Maintainers # DEST_DIR will have the build package copied. DEST_DIR=/var/www/arvados-workbench2/workbench2/ @@ -33,7 +33,7 @@ RPM_FILE=$(APP_NAME)-$(VERSION)-$(ITERATION).x86_64.rpm export WORKSPACE?=$(shell pwd) -.PHONY: help clean* yarn-install test build packages packages-with-version +.PHONY: help clean* yarn-install test build packages packages-with-version integration-tests-in-docker help: @echo >&2 @@ -60,9 +60,18 @@ clean: clean-rpm clean-deb clean-node-modules yarn-install: yarn install -test: yarn-install +unit-tests: yarn-install yarn test --no-watchAll --bail --ci +integration-tests: yarn-install + yarn run cypress install + $(WORKSPACE)/tools/run-integration-tests.sh + +integration-tests-in-docker: workbench2-build-image + docker run -ti -v$(PWD):$(PWD) -w$(PWD) workbench2-build make integration-tests + +test: unit-tests integration-tests + build: test VERSION=$(VERSION) yarn build @@ -112,4 +121,4 @@ copy: $(DEB_FILE) $(RPM_FILE) packages: copy workbench2-build-image: - docker build -t workbench2-build . + (cd docker && docker build -t workbench2-build .)