diff --git a/.travis.yml b/.travis.yml index c1d3b8810b..55440cd700 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,11 @@ # https://docs.haskellstack.org/en/stable/travis_ci/ + +os: + - linux + - windows + + # run on containerized infrastructure hopefully -dist: trusty sudo: false language: generic @@ -16,7 +21,8 @@ before_install: # Download and unpack the stack executable - mkdir -p ~/.local/bin - export PATH=$HOME/.local/bin:$PATH -- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' +- if [ "$TRAVIS_OS_NAME" = "linux" ]; then travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; fi +- if [ "$TRAVIS_OS_NAME" = "windows" ]; then travis_retry curl -L https://get.haskellstack.org/stable/windows-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; fi install: - stack ghc -- --version