Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ccfontes committed Aug 16, 2023
1 parent f8a41ec commit e019650
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
with:
ref: ${{ github.head_ref || github.ref_name }}
- name: Run Babashka unit and integration tests
run: bb run test-bb
run: script/bb run test-bb
- name: Create POM file for bb e2e tests
run: lein pom
- name: Run Babashka e2e tests
working-directory: ${{ github.workspace }}/test/e2e/bb
run: bb test.clj
run: script/bb test.clj
25 changes: 25 additions & 0 deletions script/bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh

# source: https://jmglov.net/blog/2022-08-09-dogfooding-blambda-2.html

set -e

export BABASHKA_DISABLE_SIGNAL_HANDLERS="true"

export XDG_CACHE_HOME=/opt
export XDG_CONFIG_HOME=/opt
export XDG_DATA_HOME=/opt
export HOME=/var/task
export GITLIBS=/opt
export CLOJURE_TOOLS_DIR=/opt
export CLJ_CACHE=/opt
export CLJ_CONFIG=/opt

export BABASHKA_CLASSPATH="/opt/.m2:var/task/src:/var/task/.m2:/var/task:/var/task/src/clj:/var/task/src/cljc:src/cljc:src/clj:/var/task/resources"
export BABASHKA_PRELOADS='(load-file "/opt/hacks.clj")'

if [ -z "$HL_ENTRYPOINT" ]; then
echo "Environment variable \"HL_ENTRYPOINT\" is not set. See https://fierycod.github.io/holy-lambda/#/babashka-backend-tutorial"
fi;

bb -Duser.home=/var/task -m "$HL_ENTRYPOINT"

0 comments on commit e019650

Please sign in to comment.