Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 33 lines (26 sloc) 0.572 kB
fe8a345 @fuying Qin & Jianing, add new task and create build file to run all the test
fuying authored
1 #!/bin/sh
2
3 function push {
4 git pull --rebase && \
5 build && \
6 git push
7 }
8
9 function build {
29d6e90 @suoqin walk around the freaky bug of jasmine, separate jasmine and spec in b…
suoqin authored
10 RAILS_ENV=test bundle exec rake app:db:migrate spec && \
11 RAILS_ENV=test bundle exec rake app:coffee:compile_spec app:coffee:compile app:jasmine:ci
fe8a345 @fuying Qin & Jianing, add new task and create build file to run all the test
fuying authored
12 }
13
14 function guard {
29d6e90 @suoqin walk around the freaky bug of jasmine, separate jasmine and spec in b…
suoqin authored
15 RAILS_ENV=test bundle exec rake app:db:migrate app:coffee:compile_spec app:coffee:compile && \
fe8a345 @fuying Qin & Jianing, add new task and create build file to run all the test
fuying authored
16 RAILS_ENV=test bundle exec guard
17 }
29d6e90 @suoqin walk around the freaky bug of jasmine, separate jasmine and spec in b…
suoqin authored
18
19 function jasmine {
0796efa @rohitggarg Rohit/Sumedha added jasmine to build queue
rohitggarg authored
20 RAILS_ENV=test bundle exec rake app:jasmine:ci
29d6e90 @suoqin walk around the freaky bug of jasmine, separate jasmine and spec in b…
suoqin authored
21 }
22
fe8a345 @fuying Qin & Jianing, add new task and create build file to run all the test
fuying authored
23 function main {
24 case $1 in
25 push) push;;
26 g) guard;;
29d6e90 @suoqin walk around the freaky bug of jasmine, separate jasmine and spec in b…
suoqin authored
27 j) jasmine;;
fe8a345 @fuying Qin & Jianing, add new task and create build file to run all the test
fuying authored
28 *) build;;
29 esac
30 }
31
0796efa @rohitggarg Rohit/Sumedha added jasmine to build queue
rohitggarg authored
32 main $@
Something went wrong with that request. Please try again.