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