aboutsummaryrefslogtreecommitdiff
path: root/dev/ci/nix/shell
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-11-13 12:11:09 +0100
committerEmilio Jesus Gallego Arias2018-11-13 12:11:09 +0100
commit0b816e4df10d961cce082894f5e4087dc1c95f01 (patch)
treeefc7f09113f94e8a82a9d66fd31343141e0d7d40 /dev/ci/nix/shell
parent4f67c798274b7832cc681303e51e31df6f92ab19 (diff)
parent274411f257e84d6552c3da163dd5420cd46db841 (diff)
Merge PR #8978: nix helpers for debugging external projects from CI
Diffstat (limited to 'dev/ci/nix/shell')
-rwxr-xr-xdev/ci/nix/shell20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev/ci/nix/shell b/dev/ci/nix/shell
new file mode 100755
index 0000000000..2e4462ed40
--- /dev/null
+++ b/dev/ci/nix/shell
@@ -0,0 +1,20 @@
+#!/usr/bin/env sh
+
+## This file should be run from the root of the Coq source tree
+
+BRANCH=$(git rev-parse --abbrev-ref HEAD)
+echo "Branch: $BRANCH in $PWD"
+
+if [ "$#" -ne 1 ]; then
+ PROJECT=""
+else
+ PROJECT="--argstr project $1"
+fi
+
+if [ "$BN" ]; then
+ BN="--argstr bn ${BN}"
+else
+ BN=""
+fi
+
+nix-shell ./dev/ci/nix/ --show-trace --argstr wd $PWD --argstr branch $BRANCH $PROJECT $BN