aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-05-26 20:03:04 -0300
committerEuAndreh <eu@euandre.org>2019-05-26 20:03:04 -0300
commit13238d26777bcd446459454bf5003b118415a35f (patch)
tree80c18d8e1a29ccd11ae1cb7fdb61fe158705d47e
parentUse nix-shell --pure to run scripts (diff)
downloadtoph-13238d26777bcd446459454bf5003b118415a35f.tar.gz
toph-13238d26777bcd446459454bf5003b118415a35f.tar.xz
Use nix-shell shebang to run CI scripts
-rw-r--r--.build.yml9
-rwxr-xr-xci-setup.sh3
-rw-r--r--provision.sh3
3 files changed, 7 insertions, 8 deletions
diff --git a/.build.yml b/.build.yml
index 8c22e08..4431bf4 100644
--- a/.build.yml
+++ b/.build.yml
@@ -13,11 +13,8 @@ secrets:
- 7084b7c7-12be-4509-8927-81ba6eeb1fc0
tasks:
- setup: |
- cd vps/
- nix-shell --pure --run "bash -c ./ci-setup.sh"
+ ./vps/ci-setup.sh
- tests: |
- cd vps/
- nix-build -A test
+ nix-build -A test vps/
- deploy: |
- cd vps/
- nix-shell --pure --run "bash -c ./provision.sh"
+ ./vps/provision.sh
diff --git a/ci-setup.sh b/ci-setup.sh
index b6af3c7..3a84639 100755
--- a/ci-setup.sh
+++ b/ci-setup.sh
@@ -1,4 +1,5 @@
-#!/usr/bin/env bash
+#!/usr/bin/env nix-shell
+#!nix-shell -i bash
set -Eeuo pipefail
cd "${BASH_SOURCE%/*}/"
diff --git a/provision.sh b/provision.sh
index 6ea8f4e..b472c51 100644
--- a/provision.sh
+++ b/provision.sh
@@ -1,4 +1,5 @@
-#!/usr/bin/env bash
+#!/usr/bin/env nix-shell
+#!nix-shell -i bash
set -Eeuo pipefail
cd "${BASH_SOURCE%/*}/"