forked from RedCoolBeans/dockerlint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 783 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
REPORTER ?= spec
all: js
deps:
npm install
lint:
coffeelint src
js: deps
coffee -c bin/dockerlint.coffee
coffee -o lib -c src
# Insert shebang so the resulting script runs standalone
{ echo '#!/usr/bin/env node '; cat bin/dockerlint.js; } > bin/dockerlint.js.tmp
mv bin/dockerlint.js.tmp bin/dockerlint.js
clean:
rm -fr bin/*.js bin/*.tmp lib *.tgz
run: js
node bin/dockerlint -f Dockerfile
dist: js
npm pack
tag:
git tag -a "v`cat package.json| jsawk 'return this.version'`" \
-m `cat package.json| jsawk 'return this.version'`
test: js
@NODE_ENV=test ./node_modules/.bin/mocha \
--require coffee-script/register \
--require chai \
--reporter ${REPORTER} \
--compilers coffee:coffee-script/register \
test/*.coffee
.PHONY: deps lint run tag test