-install:
- - git clone https://github.com/Bubba/haskell-ide-engine.git --recursive
- - cd haskell-ide-engine
- - git checkout d4fe878a545c2d1b9247c1ddf5e6174eeed066cb
- - stack --no-terminal --skip-ghc-check install -j1
- - stack exec hoogle generate
- - cd ..
+ # 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}
+- npm update
+- npm i -g javascript-typescript-langserver
+- 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 0f697c8919747effca54be8a9b494896aea7d947
+- git submodule update --init
+- cabal v2-update
+- |
+ if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
+ cabal v2-install hie -j2 --overwrite-policy=always --install-method=copy
+ else
+ cabal v2-install hie -j2 --overwrite-policy=always
+ fi
+- |
+ if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
+ cabal v2-install hoogle -j2 --overwrite-policy=always --install-method=copy
+ else
+ cabal v2-install hoogle -j2 --overwrite-policy=always
+ fi
+- hoogle generate
+- popd
+# needs to be old-install for cabal-helper to find it
+- cabal v1-install Cabal --constraint "Cabal == 2.4.1.0"