UNPKG

457 BPlain TextView Raw
1TEST_FOLDER ?= ./test/
2TEST_FILES ?= *.test.js
3REPORTER = spec
4TIMEOUT = 20000
5MOCHA = ./node_modules/mocha/bin/_mocha
6PATH := ./node_modules/.bin:$(PATH)
7SHELL := /bin/bash
8
9lint:
10 @npm run lint
11
12validate-lint:
13 @npm run validate-lint
14
15unit-test:
16 @mocha $(TEST_FOLDER) -t $(TIMEOUT) -R spec --recursive -name $(TEST_FILES)
17
18test: lint unit-test
19
20clean:
21 @rm -rf output
22
23binary: clean
24 @./binary.sh
25
26upload:
27 @./upload.sh
28
29.PHONY: test clean binary upload
\No newline at end of file