2017-08-07 11:08:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
case $1 in
|
|
|
|
|
cljs)
|
2025-01-22 09:50:12 +00:00
|
|
|
npx shadow-cljs compile node-test
|
|
|
|
|
node target/shadow-node-test/node-tests.js
|
|
|
|
|
|
2025-01-22 11:36:59 +00:00
|
|
|
rm -rf target/karma
|
2025-01-22 09:50:12 +00:00
|
|
|
npx shadow-cljs compile karma
|
|
|
|
|
npx karma start --single-run
|
2025-01-22 11:36:59 +00:00
|
|
|
|
|
|
|
|
rm -rf target/karma
|
|
|
|
|
npx shadow-cljs release karma
|
|
|
|
|
npx karma start --single-run
|
2017-08-07 11:08:39 +00:00
|
|
|
;;
|
2026-01-09 07:55:05 +00:00
|
|
|
clj11)
|
|
|
|
|
lein test-clj11
|
|
|
|
|
;;
|
|
|
|
|
clj12)
|
2017-08-07 11:08:39 +00:00
|
|
|
lein test-clj
|
|
|
|
|
;;
|
|
|
|
|
*)
|
2026-01-09 07:55:05 +00:00
|
|
|
echo "Please select [clj11|clj12|cljs]"
|
2017-08-07 11:08:39 +00:00
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
esac
|