-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (37 loc) · 1 KB
/
Makefile
File metadata and controls
43 lines (37 loc) · 1 KB
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
PACKAGE_VERSION=$(shell node -pe 'require('./package.json').version')
test:
docker run --rm -t \
-v `pwd`:/package \
-v '/var/run/docker.sock:/var/run/docker.sock' \
--workdir /package \
-l 'test-label=test-value' \
-e NOCK_BACK_MODE=record \
ierceg/node-dev:6.9.1 \
mocha
test-cont:
docker run --rm -t \
-v `pwd`:/package \
-v '/var/run/docker.sock:/var/run/docker.sock' \
--workdir /package \
-l 'test-label=test-value' \
-e NOCK_BACK_MODE=record \
ierceg/node-dev:6.9.1 \
nodemon -V -d 1 -L -w /package --exec mocha
coverage:
docker run --rm -t \
-v `pwd`:/package \
-v '/var/run/docker.sock:/var/run/docker.sock' \
--workdir /package \
-l 'test-label=test-value' \
-e NOCK_BACK_MODE=record \
ierceg/node-dev:6.9.1 \
istanbul cover _mocha -- --recursive && istanbul report text
bash:
docker run --rm -it \
-v `pwd`:/package \
-v '/var/run/docker.sock:/var/run/docker.sock' \
--workdir /package \
-l 'test-label=test-value' \
ierceg/node-dev:6.9.1 \
sh
.PHONY: *