Skip to content
This repository
Newer
Older
100644 43 lines (28 sloc) 1.055 kb
135163e3 »
2012-02-02 VERSIONS, cutarelease prep
1
450e4eb4 »
2012-02-08 start a test suite
2 #---- Tools
3
4 TAP := ./node_modules/.bin/tap
5
6
d89444ba »
2012-02-10 Some jsstyle cleaning.
7 #---- Files
8
9 JSSTYLE_FILES := $(shell find lib test tools -name *.js)
10
11
12
450e4eb4 »
2012-02-08 start a test suite
13 #---- Targets
14
135163e3 »
2012-02-02 VERSIONS, cutarelease prep
15 all:
16
450e4eb4 »
2012-02-08 start a test suite
17 # Ensure all version-carrying files have the same version.
18 .PHONY: versioncheck
135163e3 »
2012-02-02 VERSIONS, cutarelease prep
19 versioncheck:
20 [[ `cat package.json | json version` == `grep '^var VERSION' bin/bunyan | awk -F'"' '{print $$2}'` ]]
21 [[ `cat package.json | json version` == `grep '^var VERSION' lib/bunyan.js | awk -F'"' '{print $$2}'` ]]
22 @echo Version check ok.
23
450e4eb4 »
2012-02-08 start a test suite
24 .PHONY: cutarelease
135163e3 »
2012-02-02 VERSIONS, cutarelease prep
25 cutarelease: versioncheck
8b3bdef4 »
2012-03-27 readme tweaks
26 [[ ! -d tmp ]] # No 'tmp/' allowed: https://github.com/isaacs/npm/issues/2144 (fixed in npm 1.1.12 / node 0.6.14 I think)
e75bbb11 »
2012-02-02 latest cutarelease has support for scripts
27 ./tools/cutarelease.py -p bunyan -f package.json -f lib/bunyan.js -f bin/bunyan
135163e3 »
2012-02-02 VERSIONS, cutarelease prep
28
450e4eb4 »
2012-02-08 start a test suite
29 .PHONY: test
30 test: $(TAP)
31 TAP=1 $(TAP) test/*.test.js
32
d89444ba »
2012-02-10 Some jsstyle cleaning.
33 .PHONY: check-jsstyle
34 check-jsstyle: $(JSSTYLE_FILES)
35 ./tools/jsstyle -o indent=2,doxygen,unparenthesized-return=0,blank-after-start-comment=0 $(JSSTYLE_FILES)
36
37 .PHONY: check
38 check: check-jsstyle
39 @echo "Check ok."
40
41 .PHONY: prepush
42 prepush: check test
43 @echo "Okay to push."
Something went wrong with that request. Please try again.