adbb59f2fca381c63a18de131154179b643d3a52
[lsp-test.git] / .travis.yml
1 language: c
2
3 sudo: false
4
5 os:
6 - windows
7 - linux
8 - osx
9
10 dist: xenial
11
12 cache:
13   directories:
14     - .stack-work
15     - $HOME/.stack
16     - $HOME/haskell-ide-engine/.stack-work
17     - C:/Users/travis/AppData/Local/Programs/stack
18     - C:/sr
19   timeout: 1000
20
21 addons:
22   apt:
23     packages:
24       - haskell-stack
25       - npm
26   homebrew:
27     packages:
28       - haskell-stack
29       - npm
30
31 before_install:
32   - mkdir -p ~/.local/bin
33   - export PATH=$HOME/.local/bin:$PATH
34   - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install haskell-stack nodejs; fi
35   - mkdir -p haskell-ide-engine
36   - cd $HOME/haskell-ide-engine
37   - git init
38   - git remote add origin https://github.com/haskell/haskell-ide-engine.git
39   - git pull origin master
40   - git checkout f5c903f31ef5a7ee75984faf2e6ccc0a06ab23eb
41   - git submodule init
42   - git submodule sync
43   - git submodule update --init
44   - stack setup --silent # prevent windows logging vommit
45   - stack --no-terminal --skip-ghc-check -j2 install
46   - stack exec hoogle generate
47   - cd $TRAVIS_BUILD_DIR
48   - npm update
49   - npm i -g javascript-typescript-langserver
50
51 script:
52   - stack test