Keep stack for installing hie
[lsp-test.git] / .travis.yml
1 language: haskell
2
3 ghc:
4   - "8.2.2"
5   - "8.4.2"
6
7 sudo: false
8
9 # Caching so the next build will be fast too.
10 cache:
11   directories:
12   - $HOME/.stack
13
14 addons:
15   apt:
16     packages:
17     - npm
18
19 before_install:
20   # Download and unpack the stack executable
21   - mkdir -p ~/.local/bin
22   - export PATH=$HOME/.local/bin:$PATH
23   - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
24   - npm update
25
26 install:
27   - git clone https://github.com/haskell/haskell-ide-engine.git --recursive
28   - cd haskell-ide-engine
29   - git submodule sync
30   - git submodule update
31   # - cabal new-update
32   # - cabal new-configure
33   # - cabal new-build
34   # - export PATH=dist-newstyle/build/*/ghc-*/haskell-ide-engine-*/x/hie/build:$PATH
35   - stack --no-terminal --skip-ghc-check install -j2
36   - stack exec hoogle generate
37   - cd ..
38   - npm i -g javascript-typescript-langserver
39
40 # script:
41 #   - stack --no-terminal --skip-ghc-check test