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.
This commit is contained in:
Jordan Petridis 2018-08-18 17:34:49 +03:00
parent 89b99614a0
commit 55519b1855
No known key found for this signature in database
GPG Key ID: E8523968931763BE

View File

@ -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" \