Try boring old one env-var stack build :(
[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
11 addons:
12   apt:
13     packages:
14     - npm
15
16 before_install:
17   - mkdir -p ~/.local/bin
18   - export PATH=$HOME/.local/bin:$PATH
19   - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
20   - mkdir -p haskell-ide-engine
21   - cd $HOME/haskell-ide-engine
22   - git init
23   - git remote add origin https://github.com/haskell/haskell-ide-engine.git
24   - git pull origin master
25   - git submodule init
26   - git submodule sync
27   - git submodule update --init
28   - stack --no-terminal --skip-ghc-check -j2 install
29   - stack exec hoogle generate
30   - cd $TRAVIS_BUILD_DIR
31   - hie --version
32   - npm update
33   - npm i -g javascript-typescript-langserver
34
35 script:
36   - stack test