forked from TritonDataCenter/node-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (39 loc) · 982 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# Copyright (c) 2016, Joyent, Inc.
#
#
# Tools
#
NPM := $(shell which npm)
TAP := ./node_modules/.bin/tap
RESTDOWN_FLAGS := -b deps/restdown/brand/spartan
#
# Files
#
DOC_FILES = index.restdown motivation.restdown workflowapi.restdown
JS_FILES := $(shell ls *.js) $(shell find lib test -name '*.js')
JSL_CONF_NODE = tools/jsl.node.conf
JSL_FILES_NODE = $(JS_FILES)
JSSTYLE_FILES = $(JS_FILES)
JSSTYLE_FLAGS = -o indent=4,doxygen,unparenthesized-return=0
# SMF_MANIFESTS = smf/manifests/bapi.xml
#
# Repo-specific targets
#
.PHONY: all
all: test check
.PHONY: setup
setup: $(NPM)
$(NPM) install
.PHONY: test
test: setup nofork $(TAP)
TAP_TIMEOUT=80 $(TAP) test/*.test.js
.PHONY: nofork
nofork: setup $(TAP)
TAP_TIMEOUT=80 TEST_CONFIG_FILE=config.nofork.sample $(TAP) test/runner.test.js
.PHONY: coverage
coverage: $(TAP)
TAP_COV=1 $(TAP) test/*.test.js
include ./Makefile.deps
include ./Makefile.targ