8 # Caching so the next build will be fast too.
14 - $HOME/haskell-ide-engine/.stack-work
23 - mkdir -p ~/.local/bin
24 - export PATH=$HOME/.local/bin:$PATH
25 - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
26 - stack config set system-ghc --global true
27 # - export PATH=/opt/ghc/8.4.3/bin:$PATH
28 # - sh .download-hie.sh
29 # - export PATH=$TRAVIS_BUILD_DIR:$PATH
31 - mkdir -p haskell-ide-engine
32 - cd $HOME/haskell-ide-engine
34 - git remote add origin https://github.com/haskell/haskell-ide-engine.git
35 - git pull origin master
38 - git submodule update --init
39 - stack --no-terminal --skip-ghc-check -j2 install --stack-yaml=stack-$TRAVIS_HASKELL_VERSION.yaml
40 - stack exec hoogle generate
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
53 - cabal configure --enable-tests
54 - cabal test --show-details=streaming