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