scripts:test.sh: fail upon exit code, and print stuff

This commit is contained in:
Jordan Petridis 2019-01-27 06:01:09 +02:00
parent e9c7a3b99e
commit 86ec6f43cb
No known key found for this signature in database
GPG Key ID: 902CC06D159744F5

View File

@ -1,5 +1,9 @@
#! /usr/bin/sh
set -o errexit
set -o nounset
set -o pipefail
export MANIFEST_PATH="org.gnome.PodcastsDevel.json"
export FLATPAK_MODULE="gnome-podcasts"
export CONFIGURE_ARGS="-Dprofile=development"
@ -28,9 +32,9 @@ xvfb-run -a -s "-screen 0 1024x768x24" \
--env=CARGO_TARGET_DIR="target_test/" \
--env=RUSTFLAGS="" \
app ${MANIFEST_PATH} \
cargo test -j 1 -- --test-threads=1
cargo test -j 1 -- --test-threads=1 --nocapture
# Create a flatpak bundle
# flatpak-builder --finish-only app ${MANIFEST_PATH}
# flatpak build-export repo app
# flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
# flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}