Commit a0ff2b8a authored by Jordan Petridis's avatar Jordan Petridis 🌱

CI: set CARGO_HOME before cargo test

This is set in the scripts/cargo.sh during building, but since we
invoke cargo test manually we need to also set it here.
parent 6b6c390c
......@@ -22,8 +22,15 @@ flatpak:
- flatpak build-export repo app
# Run the tests
- flatpak-builder --run --env=RUSTFLAGS="--cfg rayon_unstable" app org.gnome.Podcasts.json cargo test -- --test-threads=1
- |
flatpak-builder --run \
--env=CARGO_HOME="./target/cargo-home/" \
--env=RUSTFLAGS="--cfg rayon_unstable" \
app org.gnome.Podcasts.json \
cargo test -- --test-threads=1
# - flatpak-builder --run app org.gnome.Podcasts.json cargo test -- --test-threads=1 --ignored
# Create a flatpak bundle
- flatpak build-bundle repo ${BUNDLE} org.gnome.Podcasts
......@@ -76,4 +83,4 @@ rustfmt:
script:
- rustc -Vv && cargo -Vv
- cargo fmt --version
- cargo fmt --all -- --check
- cargo fmt --all -- --check
\ No newline at end of file
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