-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (44 loc) · 1.08 KB
/
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
48
49
50
51
52
PACKAGE_VERSION=$(shell node -pe "require('./package.json').version")
build:
docker build \
--build-arg NPM_TOKEN=${NPM_TOKEN} \
-t getlazy/lazy:$(PACKAGE_VERSION) \
-t getlazy/lazy:latest \
.
push:
docker push getlazy/lazy:$(PACKAGE_VERSION)
docker push getlazy/lazy:latest
test:
docker run -it --rm \
-v "$(shell pwd):/app" \
-w /app \
--stop-signal SIGINT \
ierceg/node-dev:6.9.1 \
mocha -r test/bootstrap
test-cont:
docker run -it --rm \
-v "$(shell pwd):/app" \
-w /app \
--stop-signal SIGINT \
ierceg/node-dev:6.9.1 \
nodemon -V -d 1 -L -w /app --exec mocha -r test/bootstrap
coverage:
docker run -it --rm \
-v "$(shell pwd):/app" \
-w /app \
--stop-signal SIGINT \
ierceg/node-dev:6.9.1 \
istanbul cover _mocha -- --recursive -r test/bootstrap
docker run -it --rm \
-v "$(shell pwd):/app" \
-w /app \
ierceg/node-dev:6.9.1 \
istanbul report text
bash:
docker run --rm -it \
-v "$(shell pwd):/app" \
-w /app \
--env NPM_TOKEN=${NPM_TOKEN} \
node:6.10-alpine \
sh
.PHONY: *