I saw it too.
[0K$ travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | \ tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' /home/travis/build.sh: line 45: tar: command not found % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 607 0 0 7527 0 --:--:-- --:--:-- --:--:-- 7527 0 9223k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 [31;1mThe command "curl -L https://www.stackage.org/stack/linux-x86_64" failed. Retrying, 2 of 3.[0m % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 607 0 0 9491 0 --:--:-- --:--:-- --:--:-- 9491 [31;1mThe command "curl -L https://www.stackage.org/stack/linux-x86_64" failed. Retrying, 3 of 3.[0m % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 607 0 0 11999 0 --:--:-- --:--:-- --:--:-- 11999 [31;1mThe command "curl -L https://www.stackage.org/stack/linux-x86_64" failed 3 times.
This is when curl fails due to some kind of network problem. Reboot your build and hope for better luck next time.
In case of interest to those of interest to you, here is my complete, but minimal .travis.yml :
sudo: false language: c cache: directories: - ~/.stack addons: apt: packages: - libgmp-dev before_install: # Download and unpack the stack executable - mkdir -p ~/.local/bin - export PATH=$HOME/.local/bin:$PATH - travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' install: - stack --no-terminal --install-ghc test --only-dependencies script: - stack --no-terminal test --haddock --no-haddock-deps
source share