build: add tests
This commit is contained in:
parent
19316596a9
commit
35781f8b59
|
@ -83,7 +83,7 @@ build-node:
|
||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
script:
|
script:
|
||||||
- make
|
- make bundle test
|
||||||
- make run-rules
|
- make run-rules
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -79,6 +79,9 @@ build: bundle
|
||||||
bundle: node_modules
|
bundle: node_modules
|
||||||
$(NODE_BIN)/rollup --config $(CONFIG_PATH)/rollup.js
|
$(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-install: ## install dependencies from package and lock file
|
||||||
yarn
|
yarn
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue