Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 44 lines (28 sloc) 1.055 kB
135163e @trentm VERSIONS, cutarelease prep
authored
1
450e4eb @trentm start a test suite
authored
2 #---- Tools
3
4 TAP := ./node_modules/.bin/tap
5
6
d89444b @trentm Some jsstyle cleaning.
authored
7 #---- Files
8
9 JSSTYLE_FILES := $(shell find lib test tools -name *.js)
10
11
12
450e4eb @trentm start a test suite
authored
13 #---- Targets
14
135163e @trentm VERSIONS, cutarelease prep
authored
15 all:
16
450e4eb @trentm start a test suite
authored
17 # Ensure all version-carrying files have the same version.
18 .PHONY: versioncheck
135163e @trentm VERSIONS, cutarelease prep
authored
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
450e4eb @trentm start a test suite
authored
24 .PHONY: cutarelease
135163e @trentm VERSIONS, cutarelease prep
authored
25 cutarelease: versioncheck
8b3bdef @trentm readme tweaks
authored
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)
e75bbb1 @trentm latest cutarelease has support for scripts
authored
27 ./tools/cutarelease.py -p bunyan -f package.json -f lib/bunyan.js -f bin/bunyan
135163e @trentm VERSIONS, cutarelease prep
authored
28
450e4eb @trentm start a test suite
authored
29 .PHONY: test
30 test: $(TAP)
31 TAP=1 $(TAP) test/*.test.js
32
d89444b @trentm Some jsstyle cleaning.
authored
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.