forked from hybridgroup/cylon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) · 682 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (20 loc) · 682 Bytes
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
BIN := ./node_modules/.bin
TEST_FILES := spec/helper.js $(shell find spec/lib -type f -name "*.js")
VERSION := $(shell node -e "console.log(require('./package.json').version)")
.PHONY: default cover test bdd lint ci release
default: lint test
test:
@$(BIN)/mocha --colors -R dot $(TEST_FILES)
bdd:
@$(BIN)/mocha --colors -R spec $(TEST_FILES)
cover:
@istanbul cover $(BIN)/_mocha $(TEST_FILES) --report lcovonly -- -R spec
lint:
@$(BIN)/eslint lib spec examples
ci: lint cover
release: lint test
@git push origin master
@git checkout release ; git merge master ; git push ; git checkout master
@git tag -m "$(VERSION)" v$(VERSION)
@git push --tags
@npm publish ./