From 12f2ad005c7396fc0864fd1ca8a1a95c46d40c78 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Thu, 28 Jul 2022 13:28:40 +0200 Subject: [PATCH] Run CI tests with RUST_BACKTRACE=1 (fixes #39) --- .gitlab-ci.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5606ed2..9139736 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -117,10 +117,10 @@ run_cardtest_smartpgp: script: - /etc/init.d/pcscd start - su - -c "sh /home/jcardsim/run-card.sh > /dev/null" jcardsim - - cargo run -p openpgp-card-tools --bin opgpcard -- status - - cargo run -p openpgp-card-tools --bin opgpcard -- info - - cargo run -p openpgp-card-tests --bin import -- $CONFIG - - cargo run -p openpgp-card-tests --bin keygen -- $CONFIG + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tools --bin opgpcard -- status + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tools --bin opgpcard -- info + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tests --bin import -- $CONFIG + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tests --bin keygen -- $CONFIG variables: CONFIG: "card-functionality/ci/virt-smartpgp.toml" cache: @@ -136,10 +136,10 @@ run_cardtest_ykneo: script: - /etc/init.d/pcscd start - su - -c "sh /home/jcardsim/run-card.sh > /dev/null" jcardsim - - cargo run -p openpgp-card-tools --bin opgpcard -- status - - cargo run -p openpgp-card-tools --bin opgpcard -- info - - cargo run -p openpgp-card-tests --bin import -- $CONFIG - - cargo run -p openpgp-card-tests --bin keygen -- $CONFIG + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tools --bin opgpcard -- status + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tools --bin opgpcard -- info + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tests --bin import -- $CONFIG + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tests --bin keygen -- $CONFIG variables: CONFIG: "card-functionality/ci/virt-ykneo.toml" cache: @@ -155,10 +155,10 @@ run_cardtest_fluffypgp: script: - /etc/init.d/pcscd start - su - -c "sh /home/jcardsim/run-card.sh > /dev/null" jcardsim - - cargo run -p openpgp-card-tools --bin opgpcard -- status - - cargo run -p openpgp-card-tools --bin opgpcard -- info - - cargo run -p openpgp-card-tests --bin import -- $CONFIG - - cargo run -p openpgp-card-tests --bin keygen -- $CONFIG + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tools --bin opgpcard -- status + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tools --bin opgpcard -- info + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tests --bin import -- $CONFIG + - RUST_BACKTRACE=1 cargo run -p openpgp-card-tests --bin keygen -- $CONFIG variables: CONFIG: "card-functionality/ci/virt-fluffypgp.toml" cache: @@ -204,9 +204,7 @@ hardware-builddeps: - "card-functionality/ci/nitro-pro2.toml" - "card-functionality/ci/nitro-start.toml" script: - #- /etc/init.d/pcscd start - #- sleep 5 - - RUST_LOG=debug cargo run --bin $ARG -- $CONFIG + - RUST_BACKTRACE=1 RUST_LOG=debug cargo run --bin $ARG -- $CONFIG cache: # inherit all general cache settings <<: *general_cache_config