07dc18b060dbf82d137ab15c67a4eadc103c8faf
[lsp-test.git] / .travis.yml
1 language: c
2
3 sudo: false
4
5 cache:
6   directories:
7     - .stack-work
8     - $HOME/.stack
9     - $HOME/haskell-ide-engine/.stack-work
10   timeout: 1000
11
12 addons:
13   apt:
14     packages:
15       - npm
16
17 before_install:
18   - mkdir -p ~/.local/bin
19   - export PATH=$HOME/.local/bin:$PATH
20   - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
21   - mkdir -p haskell-ide-engine
22   - cd $HOME/haskell-ide-engine
23   - git init
24   - git remote add origin https://github.com/haskell/haskell-ide-engine.git
25   - git pull origin master
26   - git checkout 890ca3f2f3bd3bfe74e1f38a426b383a847763bb
27   - git submodule init
28   - git submodule sync
29   - git submodule update --init
30   - stack --no-terminal --skip-ghc-check -j2 install --stack-yaml=stack-8.6.2.yaml
31   - stack exec hoogle generate --stack-yaml=stack-8.6.2.yaml
32   - cd $TRAVIS_BUILD_DIR
33   - npm update
34   - npm i -g javascript-typescript-langserver
35
36 script:
37   - stack test