Try out cabal on travis
[opengl.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   - stack --no-terminal --skip-ghc-check install -j2
32   - stack exec hoogle generate
33   - cd ..
34   - npm i -g javascript-typescript-langserver
35
36 # script:
37 #   - stack --no-terminal --skip-ghc-check test