Commit 55519b18 authored by Jordan Petridis's avatar Jordan Petridis 🌱

scripts/test.sh: avoid conlfict with vanila cargo

I am not sure why, but cargo does not like it if flatpak-builder
and gnome Builder try to use the same target/ directory, even
though the environment should be almost identical.

The only difference is that Builder uses flatpak build instead of
flatpak-builder as far as I can see.
parent 89b99614
......@@ -14,7 +14,10 @@ flatpak-builder --run app ${MANIFEST_PATH} glib-compile-resources --sourcedir=po
# Build the flatpak repo
flatpak-builder --run app ${MANIFEST_PATH} meson --prefix=/app build
flatpak-builder --run app ${MANIFEST_PATH} ninja -C build install
flatpak-builder --run \
--env=CARGO_TARGET_DIR="target_build/" \
app ${MANIFEST_PATH} \
ninja -C build install
# Run the tests
xvfb-run -a -s "-screen 0 1024x768x24" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment