Fix tests on travis
[opengl.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 f5c903f31ef5a7ee75984faf2e6ccc0a06ab23eb
27   - git submodule init
28   - git submodule sync
29   - git submodule update --init
30   - stack --no-terminal --skip-ghc-check -j2 install
31   - stack exec hoogle generate
32   - cd $TRAVIS_BUILD_DIR
33   - npm update
34   - npm i -g javascript-typescript-langserver
35
36 script:
37   - stack test