Skip to content

Commit

Permalink
Merge pull request input-output-hk#3325 from input-output-hk/devops-9…
Browse files Browse the repository at this point in the history
…80-wallet-integration-log-artifact

[DEVOPS-980] Create build artifact with logs when test fails
  • Loading branch information
disassembler authored Aug 8, 2018
2 parents c60ce6a + ccbff81 commit be091ce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/test/wallet/integration/build-test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ stdenv.mkDerivation rec {
buildInputs = with pkgs; [ jq curl glibcLocales ];
buildCommand = ''
${walletIntegrationTests}
if [ $? == 0 ]
EXIT_CODE=$?
mkdir -pv $out/nix-support
if [ $EXIT_CODE != 0 ]
then
echo $? > $out
touch $out/nix-support/failed
tar -czvf $out/logs.tar.gz state-demo/logs
echo "file binary-dist $out/logs.tar.gz" >> $out/nix-support/hydra-build-products
fi
'';

Expand Down

0 comments on commit be091ce

Please sign in to comment.