From 020e8b1cf3e6058a1f8acade8d60591d4c258a26 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Tue, 15 Aug 2023 13:47:14 -0400 Subject: [PATCH] make sure the ci job will fail if a cabal command fails --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index b97bb3e..3c68371 100644 --- a/flake.nix +++ b/flake.nix @@ -42,9 +42,11 @@ runtimeInputs = with pkgs; [pkg-config haskell.compiler.${ghcVersion} cabal-install]; text = '' + set -ex cabal update hackage.haskell.org - cabal build all - cabal run tests + cabal build --enable-tests + runtests=$(cabal list-bin --enable-tests tahoe-capabilities-test) + eval "$runtests" ''; } }/bin/cabal-build-and-test"; -- GitLab