aboutsummaryrefslogtreecommitdiff
path: root/dev/ci/nix/shell
diff options
context:
space:
mode:
authorVincent Laporte2018-09-14 14:27:39 +0000
committerVincent Laporte2018-11-12 16:10:20 +0000
commit7e014333c57bdede663e490743bc84f696764381 (patch)
treecb6a82dbb7e5014ac71f976cc05999099cd2820c /dev/ci/nix/shell
parent040fdec17f7e70fdbef7d400be2dc0e1607a10fa (diff)
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