I have recently been trying to use travis CI with stack and i have been running in to some issues.
my .travis.yml file is located in my repo which is here: (I used the guide on the stack website) A snapshot of my config file is as follows:
sudo: false
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
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'
The tests fail to run when i push them to git, travis CI tries to build my repo, but when i examine the log it says that it cannot find the stack command.
However in my config file I specified for it to install stack.
I am not to sure why this is happening, any help will be appreciated?
I've seen this too.
It's when
curlfails due to some kind of network problem. Restart your build and hope for better luck next time.In case folks are interested, here is my complete but minimal
.travis.yml: