From 35781f8b597fa741b3b77111b0d3fca53e87b02d Mon Sep 17 00:00:00 2001 From: ssube Date: Fri, 28 Jun 2019 20:25:53 -0500 Subject: [PATCH] build: add tests --- .gitlab-ci.yml | 2 +- Makefile | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df2b810..66bc8a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -83,7 +83,7 @@ build-node: variables: GIT_SUBMODULE_STRATEGY: recursive script: - - make + - make bundle test - make run-rules artifacts: diff --git a/Makefile b/Makefile index 0845043..4e0618f 100755 --- a/Makefile +++ b/Makefile @@ -79,6 +79,9 @@ build: bundle bundle: node_modules $(NODE_BIN)/rollup --config $(CONFIG_PATH)/rollup.js +test: bundle + $(NODE_BIN)/mocha $(TARGET_PATH)/test.js + yarn-install: ## install dependencies from package and lock file yarn