mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
build: ensure urbit tests are run with the -g argument
This commit is contained in:
parent
dd782e062e
commit
644acd5002
@ -1,4 +1,4 @@
|
||||
{ stdenvNoCC, cacert }:
|
||||
{ lib, stdenvNoCC, cacert }:
|
||||
|
||||
{ urbit, herb, arvo ? null, pill, ship }:
|
||||
|
||||
@ -22,9 +22,13 @@ stdenvNoCC.mkDerivation {
|
||||
set -xeuo pipefail
|
||||
|
||||
if [ -z "$ARVO" ]; then
|
||||
urbit -d -F "$SHIP" -B "$PILL" ./pier
|
||||
urbit ${
|
||||
lib.concatStringsSep " " urbit.meta.arguments
|
||||
} -d -F "$SHIP" -B "$PILL" ./pier
|
||||
else
|
||||
urbit -d -F "$SHIP" -A "$ARVO" -B "$PILL" ./pier
|
||||
urbit ${
|
||||
lib.concatStringsSep " " urbit.meta.arguments
|
||||
} -d -F "$SHIP" -A "$ARVO" -B "$PILL" ./pier
|
||||
fi
|
||||
|
||||
cleanup () {
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenvNoCC, cacert, python3, bootFakeShip }:
|
||||
{ lib, stdenvNoCC, cacert, python3, bootFakeShip }:
|
||||
|
||||
{ urbit, herb, arvo ? null, pill, ship ? "bus", doCheck ? true }:
|
||||
|
||||
@ -19,7 +19,9 @@ stdenvNoCC.mkDerivation {
|
||||
buildPhase = ''
|
||||
set -x
|
||||
|
||||
urbit -d ./pier 2> urbit-output
|
||||
urbit ${
|
||||
lib.concatStringsSep " " urbit.meta.arguments
|
||||
} -d ./pier 2> urbit-output
|
||||
|
||||
# Sledge Hammer!
|
||||
# See: https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959
|
||||
|
@ -75,5 +75,8 @@ in stdenv.mkDerivation {
|
||||
|
||||
inherit enableParallelBuilding doCheck dontStrip;
|
||||
|
||||
meta = { debug = enableDebug; };
|
||||
meta = {
|
||||
debug = enableDebug;
|
||||
arguments = lib.optionals enableDebug [ "-g" ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user