Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3fa68e4

Browse files
committed
Allow disabling of shell scripts without changing eclipse configuration
1 parent b85e957 commit 3fa68e4

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/bin/sh
22
tests=$1
3-
if [[ $tests = "" ]]; then
4-
tests="all"
5-
fi
63

7-
java -Xmx1g -jar lib/jstestdriver/JsTestDriver.jar --config jsTestDriver-coverage.conf --testOutput=tmp/lcov --tests "$tests"
4+
java -Xmx1g -jar lib/jstestdriver/JsTestDriver.jar --config jsTestDriver-coverage.conf --testOutput=tmp/lcov --tests all $@
85
genhtml -o tmp/coverage-html/ tmp/lcov/jsTestDriver.conf-coverage.dat
96
echo "done! check out tmp/coverage-html/index.html"

test-perf.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
tests=$1
33
norecompile=$2
44

5-
if [[ $tests = "" ]]; then
6-
tests="all"
7-
fi
8-
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.sh

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

7-
java -jar lib/jstestdriver/JsTestDriver.jar --tests "$tests"
8-
#java -jar lib/jstestdriver/JsTestDriver.jar --tests "$tests" --config jsTestDriver-jquery.conf
8+
fi

0 commit comments

Comments
 (0)