travis_retry doesn't work from bash scripts.

This commit is contained in:
Benjamin Summers 2019-12-10 23:46:03 -08:00
parent e2765f3d2d
commit 9bcfe72ec5
2 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@ install:
- nix-env -iA cachix -f https://cachix.org/api/v1/install
- stack --no-terminal --install-ghc build king --only-dependencies
# TODO Only do release builds on the `pull` branch?
script:
- cachix use urbit2
- ./sh/cachix || true

View File

@ -5,13 +5,13 @@ set -ex
mkdir -p ~/.local/bin
# OSX
# travis_retry curl -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
# curl -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
mkdir -p tmp
pax="https://get.haskellstack.org/stable/linux-x86_64.tar.gz"
travis_retry curl -L $pax | tar xz -C tmp
curl -L $pax | tar xz -C tmp
mv tmp/stack-*/stack ~/.local/bin