-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCakefile
36 lines (31 loc) · 844 Bytes
/
Cakefile
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
exec = require 'executive'
task 'build', 'Build project', ->
exec './node_modules/.bin/coffee -bc -o lib/ src/'
task 'test', 'run tests', ->
exec "NODE_ENV=test
./node_modules/.bin/mocha
--compilers coffee:coffee-script
--reporter spec
--colors
--timeout 60000
test/integration test/unit"
task 'test:integration', 'run integration tests', ->
exec "NODE_ENV=test
./node_modules/.bin/mocha
--compilers coffee:coffee-script
--reporter spec
--colors
test/integration"
task 'test:unit', 'run unit tests', ->
exec "NODE_ENV=test
./node_modules/.bin/mocha
--compilers coffee:coffee-script
--reporter spec
--colors
test/unit"
task 'publish', 'Publish current version to NPM', ->
exec [
'./node_modules/.bin/coffee -bc -o lib/ src/'
'git push'
'npm publish'
]