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
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
packages: copy
workbench2-build-image:
- docker build -t workbench2-build .
+ (cd docker && docker build -t workbench2-build .)