File tree Expand file tree Collapse file tree 5 files changed +21
-4
lines changed
Expand file tree Collapse file tree 5 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ if [ "$CLOJURESCRIPT_HOME" = "" ]; then
77 CLOJURESCRIPT_HOME=" ` dirname $0 ` /.."
88fi
99
10+ if ! test " $( ls -A " $CLOJURESCRIPT_HOME /lib" 2> /dev/null) " ; then
11+ >&2 echo lib/ folder is empty, have you run \` script/bootstrap\` ?
12+ exit 1
13+ fi
14+
1015CLJSC_CP=' '
1116for next in lib/* : src/main/clojure: src/main/cljs: src/test/cljs; do
1217 CLJSC_CP=" ${CLJSC_CP}${CLOJURESCRIPT_HOME} /${next} "
Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ mkdir -p builds/out-adv
88possible=4
99ran=0
1010
11- bin/cljsc src/test/cljs " {:optimizations :advanced :output-wrapper true :verbose true :compiler-stats true :parallel-build true :output-dir \" builds/out-adv\" }" > builds/out-adv/core-advanced-test.js
11+ if ! bin/cljsc src/test/cljs " {:optimizations :advanced :output-wrapper true :verbose true :compiler-stats true :parallel-build true :output-dir \" builds/out-adv\" }" > builds/out-adv/core-advanced-test.js; then
12+ >&2 echo ClojureScript compilation failed
13+ exit 1
14+ fi ;
1215
1316if [ " $V8_HOME " = " " ]; then
1417 echo " V8_HOME not set, skipping V8 tests"
Original file line number Diff line number Diff line change 44rm -rf builds/out-self
55mkdir -p builds/out-self
66
7- bin/cljsc src/test/self/self_host " {:optimizations :simple :static-fns true :output-dir \" builds/out-self\" :optimize-constants true :verbose true :compiler-stats true :parallel-build true :target :nodejs}" > builds/out-self/core-self-test.js
7+ if ! bin/cljsc src/test/self/self_host " {:optimizations :simple :static-fns true :output-dir \" builds/out-self\" :optimize-constants true :verbose true :compiler-stats true :parallel-build true :target :nodejs}" > builds/out-self/core-self-test.js; then
8+ >&2 echo ClojureScript compilation failed
9+ exit 1
10+ fi ;
811
912echo " Testing with Node"
1013node builds/out-self/core-self-test.js
Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ mkdir -p builds/out-self-parity/clojure/test
1515mv clojure/template.clj builds/out-self-parity/clojure
1616mv clojure/test builds/out-self-parity/clojure
1717
18- bin/cljsc src/test/self/self_parity " {:optimizations :none :output-to \" builds/out-self-parity/main.js\" :output-dir \" builds/out-self-parity\" :main self-parity.test :target :nodejs}"
18+ if ! bin/cljsc src/test/self/self_parity " {:optimizations :none :output-to \" builds/out-self-parity/main.js\" :output-dir \" builds/out-self-parity\" :main self-parity.test :target :nodejs}" ; then
19+ >&2 echo ClojureScript compilation failed
20+ exit 1
21+ fi ;
1922
2023echo " Testing with Node"
2124node builds/out-self-parity/main.js
Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ possible=4
88ran=0
99
1010# bin/cljsc test >out/core-test.js
11- bin/cljsc src/test/cljs " {:optimizations :simple :static-fns true :output-dir \" builds/out-simp\" :cache-analysis true :output-wrapper true :compiler-stats true}" > builds/out-simp/core-simple-test.js
11+ if ! bin/cljsc src/test/cljs " {:optimizations :simple :static-fns true :output-dir \" builds/out-simp\" :cache-analysis true :output-wrapper true :compiler-stats true}" > builds/out-simp/core-simple-test.js; then
12+ >&2 echo ClojureScript compilation failed
13+ exit 1
14+ fi ;
1215
1316if [ " $V8_HOME " = " " ]; then
1417 echo " V8_HOME not set, skipping V8 tests"
You can’t perform that action at this time.
0 commit comments