- # 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" == "windows" ]]; then
+ choco source add -n mistuke -s https://www.myget.org/F/mistuke/api/v2
+ choco install cabal-head -pre
+ choco install ghc nodejs
+ /C/ProgramData/chocolatey/bin/RefreshEnv.cmd
+ export PATH=/C/ProgramData/chocolatey/lib/ghc/tools/ghc-8.6.5/bin:${PATH}
+ fi
+# these are taken from the haskell language setup
+- export PATH=/opt/ghc/8.6.5/bin:${PATH}
+- export PATH=/opt/cabal/2.4/bin:${PATH}
+- export PATH=$HOME/.cabal/bin:${PATH}
+- ghc --version
+- mkdir -p $HOME/haskell-ide-engine
+- pushd $HOME/haskell-ide-engine
+- git init
+- git remote add origin https://github.com/haskell/haskell-ide-engine.git
+- git pull origin master
+- git checkout abdb097f39e135deaf321a604c95f16cbda32678
+- git submodule update --init
+- cabal v2-update
+- cabal v2-install hie -j2 --overwrite-policy=always
+- cabal v2-install hoogle -j2 --overwrite-policy=always
+- hoogle generate
+- popd
+# needs to be old-install for cabal-helper to find it
+- cabal install Cabal --constraint "Cabal == 2.4.1.0"
+- npm update
+- npm i -g javascript-typescript-langserver