Tweak timeout tests
[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       - npm
25   homebrew:
26     packages:
27       - haskell-stack
28       - npm
29
30 before_install:
31   - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install haskell-stack nodejs; /C/ProgramData/chocolatey/bin/RefreshEnv.cmd; fi
32   - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./.linux.sh; fi
33   - mkdir -p haskell-ide-engine
34   - cd $HOME/haskell-ide-engine
35   - git init
36   - git remote add origin https://github.com/haskell/haskell-ide-engine.git
37   - git pull origin master
38   - git checkout 1a5640f4790bde364dcd0a61617c5ca5b85b145a
39   - git submodule init
40   - git submodule sync
41   - git submodule update --init
42   - stack --no-terminal --skip-ghc-check -j2 install --stack-yaml=stack-8.6.2.yaml
43   - stack exec hoogle generate --stack-yaml=stack-8.6.2.yaml
44   - cd $TRAVIS_BUILD_DIR
45   - npm update
46   - npm i -g javascript-typescript-langserver
47
48 script:
49   - stack test