Allow disabling of shell scripts without changing eclipse configuration

This commit is contained in:
Misko Hevery 2011-04-21 15:12:53 -07:00
parent a23d15ad3a
commit 4295b3dded
6 changed files with 12 additions and 25 deletions

2
.gitignore vendored
View file

@ -2,6 +2,8 @@ build/
angularjs.netrc angularjs.netrc
jstd.log jstd.log
.DS_Store .DS_Store
gen_docs.disable
test.disable
regression/temp*.html regression/temp*.html
performance/temp*.html performance/temp*.html
.idea/workspace.xml .idea/workspace.xml

View file

@ -1,3 +1,4 @@
#!/bin/bash #!/bin/bash
. ~/.bashrc if [ ! -e gen_docs.disable ]; then
node docs/spec/specs.js --noColor | grep -v '/lib/jasmine' && node docs/src/gen-docs.js /usr/bin/env node docs/spec/specs.js --noColor | grep -v '/lib/jasmine' && node docs/src/gen-docs.js
fi

View file

@ -1,9 +1,4 @@
#!/bin/sh #!/bin/sh
tests=$1 java -Xmx1g -jar lib/jstestdriver/JsTestDriver.jar --config jsTestDriver-coverage.conf --testOutput=tmp/lcov --tests all $@
if [[ $tests = "" ]]; then
tests="all"
fi
java -Xmx1g -jar lib/jstestdriver/JsTestDriver.jar --config jsTestDriver-coverage.conf --testOutput=tmp/lcov --tests "$tests"
genhtml -o tmp/coverage-html/ tmp/lcov/jsTestDriver.conf-coverage.dat genhtml -o tmp/coverage-html/ tmp/lcov/jsTestDriver.conf-coverage.dat
echo "done! check out tmp/coverage-html/index.html" echo "done! check out tmp/coverage-html/index.html"

View file

@ -1,13 +1,9 @@
#!/bin/sh #!/bin/sh
tests=$1
norecompile=$2
if [[ $tests = "" ]]; then norecompile=$1
tests="all"
fi
if [[ $norecompile = "" ]]; then if [[ $norecompile = "" ]]; then
rake compile rake compile
fi fi
java -jar lib/jstestdriver/JsTestDriver.jar --tests "$tests" --config jsTestDriver-perf.conf java -jar lib/jstestdriver/JsTestDriver.jar --tests all --config jsTestDriver-perf.conf $@

View file

@ -1,7 +1,3 @@
#!/bin/bash #!/bin/bash
tests=$1
if [[ $tests = "" ]]; then
tests="all"
fi
java -jar lib/jstestdriver/JsTestDriver.jar --tests "$tests" --config jsTestDriver-scenario.conf --reset java -jar lib/jstestdriver/JsTestDriver.jar --tests "all" --config jsTestDriver-scenario.conf --reset

View file

@ -1,8 +1,5 @@
#!/bin/bash #!/bin/bash
tests=$1 if [ ! -e test.dissable ]; then
if [[ $tests = "" ]]; then java -jar lib/jstestdriver/JsTestDriver.jar --tests all $@
tests="all" #java -jar lib/jstestdriver/JsTestDriver.jar --tests all --config jsTestDriver-jquery.conf $@
fi fi
java -jar lib/jstestdriver/JsTestDriver.jar --tests "$tests"
#java -jar lib/jstestdriver/JsTestDriver.jar --tests "$tests" --config jsTestDriver-jquery.conf