Skip to content

Commit f3c920e

Browse files
committed
Instantiate the environment
1 parent e681da6 commit f3c920e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

test/test_setup.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ for f in menu.jl bench.jl rectangular_wing.jl V3_kite.jl \
6060
fi
6161
done
6262

63+
# The copied examples activate their own project (@__DIR__), so ensure that
64+
# environment is fully resolved and linked to this checkout before execution.
65+
$JULIA --project=examples -e '
66+
using Pkg
67+
Pkg.develop(path="'"$REPO_ROOT"'")
68+
Pkg.instantiate()
69+
' 2>&1 && pass "instantiated examples environment" || fail "instantiated examples environment"
70+
6371
# Verify correct packages were added
6472
$JULIA --project=. -e '
6573
using Pkg
@@ -74,7 +82,7 @@ $JULIA --project=. -e '
7482
for f in rectangular_wing.jl pyramid_model.jl V3_kite.jl \
7583
stall_model.jl ram_air_kite.jl bench.jl; do
7684
echo " Running $f..."
77-
$JULIA --project=. -e '
85+
$JULIA --project=examples -e '
7886
include("examples/'"$f"'")
7987
' 2>&1 && pass "run $f" || fail "run $f"
8088
done

0 commit comments

Comments
 (0)