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:
parent
89b99614a0
commit
55519b1855
@ -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" \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user