File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -20,20 +20,20 @@ if [ ! -d "$ROOT_DIR/build/$LAMBDA_build" ]; then
20
20
" Please run './scripts/compile_and_run.sh --build $LAMBDA_build "
21
21
fi
22
22
23
-
24
23
LAMBDA_INFO " Running tests on a $LAMBDA_build build of lamscript."
25
24
26
25
if [ $LAMBDA_os = " Linux" ] || [ $LAMBDA_os = " Macos" ]; then
27
- pushd $ROOT_DIR /build/$LAMBDA_build /bin > /dev/null
26
+ pushd " $ROOT_DIR /build/$LAMBDA_build /bin" > /dev/null
27
+ cp -r " $ROOT_DIR /examples" examples
28
28
./lamscript_tests
29
- elif [ $LAMBDA_os = " Windows" ]; then
30
- pushd $ROOT_DIR /build/$LAMBDA_build /bin/$LAMBDA_build > /dev/null
29
+ elif [ " $LAMBDA_os " = " Windows" ]; then
30
+ pushd " $ROOT_DIR /build/$LAMBDA_build /bin/$LAMBDA_build " > /dev/null
31
+ cp -r " $ROOT_DIR /examples/" examples
31
32
./lamscript_tests.exe
32
33
else
33
34
LAMBDA_FATAL " --os needs to be Linux, Macos, or Windows."
34
35
fi
35
36
36
-
37
37
LAMBDA_INFO " Finished executing $LAMBDA_example "
38
38
39
39
popd > /dev/null # $ROOT_DIR/build/$LAMBDA_build/bin
Original file line number Diff line number Diff line change
1
+ # setup.sh
2
+ #
3
+ # Setup the Lamscript workspace for development & building.
1
4
ROOT_DIR=" $( git rev-parse --show-toplevel) "
2
5
pushd $ROOT_DIR > /dev/null
3
6
7
+ # ------------------------------ UPDATE SUBMODULES -----------------------------
4
8
5
- # Fetch submodules.
6
9
git submodule update --init --recursive
7
10
8
- # Source lambda-sh for our bash scripts.
11
+ # ------------------------------- LAMBDA-SH SETUP ------------------------------
12
+
9
13
source lambda-sh/lambda.sh
10
14
11
15
LAMBDA_INFO " Successfully installed submodules and setup lambda.sh"
@@ -18,6 +22,8 @@ if [ "$LAMBDA_within_ci" = true ]; then
18
22
exit
19
23
fi
20
24
25
+ # ------------------------------ PRE-COMMIT SETUP ------------------------------
26
+
21
27
if command -v pre-commit > /dev/null; then
22
28
pre-commit install > /dev/null
23
29
LAMBDA_INFO " Installed pre-commit hooks."
You can’t perform that action at this time.
0 commit comments