- # 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'
-
- - cd $HOME
- # It's ok to fail
- - cd haskell-ide-engine
- - git init
- - git remote add origin https://github.com/Bubba/haskell-ide-engine.git
- - git pull origin heirarchal-document-symbols
- - git submodule init
- - git submodule sync
- - git submodule update
- # - cabal new-update
- # - cabal new-configure
- # - cabal new-build
- # - export PATH=$HOME/haskell-ide-engine/dist-newstyle/build/*/ghc-*/haskell-ide-engine-*/x/hie/build:$PATH
- - stack --no-terminal --skip-ghc-check install -j2
- - stack exec hoogle generate
- - cd $TRAVIS_BUILD_DIR
+- |
+ 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 --ignore-dependencies
+ choco install nodejs.install
+ /C/ProgramData/chocolatey/bin/RefreshEnv.cmd
+
+ # ghc/cabal paths
+ export PATH=/C/ProgramData/chocolatey/lib/ghc/tools/ghc-8.6.5/bin:${PATH}
+ export PATH=${APPDATA}/cabal/bin:${PATH}
+ # nodejs paths
+ export PATH=/C/Program\ Files/nodejs:${PATH}
+ export PATH=${APPDATA}/npm:${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}