forked from polvo/polvo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
93 lines (62 loc) · 1.56 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
CS=node_modules/coffee-script/bin/coffee
MVERSION=node_modules/mversion/bin/version
VERSION=`$(MVERSION) | sed -E 's/\* package.json: //g'`
ISTANBUL=node_modules/istanbul/lib/cli.js
MOCHA=node_modules/mocha/bin/mocha
_MOCHA=node_modules/mocha/bin/_mocha
COVERALLS=node_modules/coveralls/bin/coveralls.js
POLVO=bin/polvo
setup:
@npm link
watch:
@$(CS) -bwmco lib src
build:
@$(CS) -bmco lib src
test.clean:
@git clean -fdx tests/fixtures
@make test.dependencies
test.dependencies:
@cd tests/fixtures/package-systems && npm install
@cd tests/fixtures/package-systems && bower install
@cd tests/fixtures/package-systems && component install
test: build
@$(MOCHA) --compilers coffee:coffee-script \
--ui bdd \
--reporter spec \
--recursive \
--timeout 10000 \
tests/tests
test.coverage: build
@$(ISTANBUL) cover $(_MOCHA) -- \
--compilers coffee:coffee-script \
--ui bdd \
--reporter spec \
--recursive \
--timeout 10000 \
tests/tests
test.coverage.preview: test.coverage
@cd coverage/lcov-report && python -m SimpleHTTPServer 8080
test.coverage.coveralls: test.coverage
@sed -i.bak \
"s/^.*polvo\/lib/SF:lib/g" \
coverage/lcov.info
@cat coverage/lcov.info | $(COVERALLS)
bump.minor:
@$(MVERSION) minor
bump.major:
@$(MVERSION) major
bump.patch:
@$(MVERSION) patch
publish:
git tag $(VERSION)
git push origin $(VERSION)
git push origin master
npm publish
re-publish:
git tag -d $(VERSION)
git tag $(VERSION)
git push origin :$(VERSION)
git push origin $(VERSION)
git push origin master -f
npm publish -f
.PHONY: build