8 # Caching so the next build will be fast too.
14 - $HOME/haskell-ide-engine/.stack-work
24 - mkdir -p ~/.local/bin
25 - export PATH=$HOME/.local/bin:$PATH
26 - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
27 - stack config set system-ghc --global true
28 # - export PATH=/opt/ghc/8.4.3/bin:$PATH
29 # - sh .download-hie.sh
30 # - export PATH=$TRAVIS_BUILD_DIR:$PATH
32 - mkdir -p haskell-ide-engine
33 - cd $HOME/haskell-ide-engine
35 - git remote add origin https://github.com/haskell/haskell-ide-engine.git
36 - git pull origin master
39 - git submodule update --init
40 - stack --no-terminal install
41 - cd $TRAVIS_BUILD_DIR
43 # - git submodule init
44 # - git submodule sync
45 # - git submodule update
46 # - cabal new-configure
47 # - cabal new-build -j2
48 # - export PATH=$HOME/haskell-ide-engine/dist-newstyle/build/*/ghc-*/haskell-ide-engine-*/c/hie/build/hie/hie:$PATH
50 - npm i -g javascript-typescript-langserver
54 # - cabal configure --enable-tests --enable-coverage
55 # - cabal test --show-details=streaming