Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4295b3d

Browse files
committedJun 8, 2011
Allow disabling of shell scripts without changing eclipse configuration
1 parent a23d15a commit 4295b3d

File tree

6 files changed

+12
-25
lines changed

6 files changed

+12
-25
lines changed
 

‎.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ build/
22
angularjs.netrc
33
jstd.log
44
.DS_Store
5+
gen_docs.disable
6+
test.disable
57
regression/temp*.html
68
performance/temp*.html
79
.idea/workspace.xml

‎gen_docs.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2-
. ~/.bashrc
3-
node docs/spec/specs.js --noColor | grep -v '/lib/jasmine' && node docs/src/gen-docs.js
2+
if [ ! -e gen_docs.disable ]; then
3+
/usr/bin/env node docs/spec/specs.js --noColor | grep -v '/lib/jasmine' && node docs/src/gen-docs.js
4+
fi

‎test-coverage.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
#!/bin/sh
2-
tests=$1
3-
if [[ $tests = "" ]]; then
4-
tests="all"
5-
fi
6-
7-
java -Xmx1g -jar lib/jstestdriver/JsTestDriver.jar --config jsTestDriver-coverage.conf --testOutput=tmp/lcov --tests "$tests"
2+
java -Xmx1g -jar lib/jstestdriver/JsTestDriver.jar --config jsTestDriver-coverage.conf --testOutput=tmp/lcov --tests all $@
83
genhtml -o tmp/coverage-html/ tmp/lcov/jsTestDriver.conf-coverage.dat
94
echo "done! check out tmp/coverage-html/index.html"

‎test-perf.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
#!/bin/sh
2-
tests=$1
3-
norecompile=$2
42

5-
if [[ $tests = "" ]]; then
6-
tests="all"
7-
fi
3+
norecompile=$1
84

95
if [[ $norecompile = "" ]]; then
106
rake compile
117
fi
128

13-
java -jar lib/jstestdriver/JsTestDriver.jar --tests "$tests" --config jsTestDriver-perf.conf
9+
java -jar lib/jstestdriver/JsTestDriver.jar --tests all --config jsTestDriver-perf.conf $@

‎test-scenario.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
#!/bin/bash
2-
tests=$1
3-
if [[ $tests = "" ]]; then
4-
tests="all"
5-
fi
62

7-
java -jar lib/jstestdriver/JsTestDriver.jar --tests "$tests" --config jsTestDriver-scenario.conf --reset
3+
java -jar lib/jstestdriver/JsTestDriver.jar --tests "all" --config jsTestDriver-scenario.conf --reset

‎test.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/bash
2-
tests=$1
3-
if [[ $tests = "" ]]; then
4-
tests="all"
2+
if [ ! -e test.dissable ]; then
3+
java -jar lib/jstestdriver/JsTestDriver.jar --tests all $@
4+
#java -jar lib/jstestdriver/JsTestDriver.jar --tests all --config jsTestDriver-jquery.conf $@
55
fi
6-
7-
java -jar lib/jstestdriver/JsTestDriver.jar --tests "$tests"
8-
#java -jar lib/jstestdriver/JsTestDriver.jar --tests "$tests" --config jsTestDriver-jquery.conf

0 commit comments

Comments
 (0)
Please sign in to comment.