From 13238d26777bcd446459454bf5003b118415a35f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 26 May 2019 20:03:04 -0300 Subject: Use nix-shell shebang to run CI scripts --- .build.yml | 9 +++------ ci-setup.sh | 3 ++- provision.sh | 3 ++- 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%/*}/" -- cgit v1.2.3