From 01b70adc02df391cd1e2fa324e1e25f6bbd3daa3 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Tue, 20 Oct 2015 09:30:03 +0000 Subject: [PATCH] Fix upload script on Travis --- .travis.yml | 2 +- src/soh-upload/upload.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 61b6a0b..2179f04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ before_install: - travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' install: - - (cd src/soh-upload && stack $ARGS --no-terminal --install-ghc test --pedantic --haddock) +- (cd src/soh-upload && stack $ARGS --no-terminal --install-ghc test --pedantic --haddock --copy-bins) # Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail. script: diff --git a/src/soh-upload/upload.sh b/src/soh-upload/upload.sh index 0b2c867..9ef4eb2 100755 --- a/src/soh-upload/upload.sh +++ b/src/soh-upload/upload.sh @@ -1,3 +1,7 @@ +#!/usr/bin/env bash + +set -eoux pipefail + # Intended usage is from the root of the repo: # ./src/soh-upload/upload.sh @@ -20,7 +24,7 @@ security-token: $SIG_TOKEN folder: $SIG_FOLDER$FOLDER/ EOF -stack exec soh-upload $FOLDER +soh-upload $FOLDER rm $FOLDER/soh-upload.yaml