init research
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -xe
|
||||
|
||||
clojure -M:jar && clojure -M:install
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
# Should work if the env var is empty
|
||||
clojure -M:test:$CLOJURE_ALIAS -m kaocha.runner "$@"
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: native-image demo|demosci"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p classes
|
||||
clojure -J-Dborkdude.dynaload.aot=true -A:graalvm -e "(compile 'malli.graalvm.$1)"
|
||||
|
||||
# java -cp "$(clojure -A:graalvm -Spath):classes" malli.graalvm.demo
|
||||
|
||||
if [ -z "$GRAALVM_HOME" ]; then
|
||||
echo "Please set $GRAALVM_HOME"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"$GRAALVM_HOME/bin/native-image" \
|
||||
-cp "$(clojure -A:graalvm -Spath):classes" \
|
||||
-H:Name=$1 \
|
||||
-J-Dborkdude.dynaload.aot=true \
|
||||
-H:+ReportExceptionStackTraces \
|
||||
--initialize-at-build-time \
|
||||
--report-unsupported-elements-at-runtime \
|
||||
--verbose \
|
||||
--no-fallback \
|
||||
--no-server \
|
||||
"-J-Xmx3g" \
|
||||
malli.graalvm.$1
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
none() {
|
||||
echo 'Running CLJS test in Node with optimizations :none'
|
||||
TEST_SCI=true clojure -M:test:cljs-test-runner:sci:test-sci -c '{:optimizations :none}' "$@"
|
||||
}
|
||||
|
||||
advanced() {
|
||||
echo 'Running CLJS test in Node with optimizations :advanced'
|
||||
TEST_SCI=true clojure -M:test:cljs-test-runner:sci:test-sci -c '{:optimizations :advanced}' -e :simple "$@"
|
||||
}
|
||||
|
||||
cherry-none() {
|
||||
echo 'Running CLJS test in Node with cherry + optimizations :none'
|
||||
clojure -M:test:cljs-test-runner:cherry:test-cherry -c '{:optimizations :none}' "$@"
|
||||
}
|
||||
|
||||
cherry-advanced() {
|
||||
echo 'Running CLJS test in Node with cherry + optimizations :advanced'
|
||||
# :optimize-constants is set to false until https://clojure.atlassian.net/browse/CLJS-3401 is fixed
|
||||
clojure -M:test:cljs-test-runner:cherry:test-cherry -c '{:optimizations :advanced :optimize-constants false}' -e :simple "$@"
|
||||
}
|
||||
|
||||
case $1 in
|
||||
none) none ;;
|
||||
advanced) advanced ;;
|
||||
cherry-none) cherry-none ;;
|
||||
cherry-advanced) cherry-advanced ;;
|
||||
*) none; advanced; cherry; cherry-advanced ;;
|
||||
esac
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
clojure -M:shadow:rebel:test -m rebel-readline.main
|
||||
Reference in New Issue
Block a user