Fix upload script on Travis

This commit is contained in:
Michael Snoyman 2015-10-20 09:30:03 +00:00
parent d61ddae1a3
commit 01b70adc02
2 changed files with 6 additions and 2 deletions

View file

@ -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' - travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
install: 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. # 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: script:

View file

@ -1,3 +1,7 @@
#!/usr/bin/env bash
set -eoux pipefail
# Intended usage is from the root of the repo: # Intended usage is from the root of the repo:
# ./src/soh-upload/upload.sh # ./src/soh-upload/upload.sh
@ -20,7 +24,7 @@ security-token: $SIG_TOKEN
folder: $SIG_FOLDER$FOLDER/ folder: $SIG_FOLDER$FOLDER/
EOF EOF
stack exec soh-upload $FOLDER soh-upload $FOLDER
rm $FOLDER/soh-upload.yaml rm $FOLDER/soh-upload.yaml