Try out multiple OSs
[opengl.git] / .travis.yml
1 language: c
2
3 sudo: false
4
5 os:
6 - windows
7 - linux
8 - osx
9
10 cache:
11   directories:
12     - .stack-work
13     - $HOME/.stack
14     - $HOME/haskell-ide-engine/.stack-work
15   timeout: 1000
16
17 addons:
18   apt:
19     packages:
20       - haskell-stack
21       - npm
22   homebrew:
23     packages:
24       - haskell-stack
25       - npm
26
27 before_install:
28   - mkdir -p ~/.local/bin
29   - export PATH=$HOME/.local/bin:$PATH
30   - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install haskell-stack; fi
31   # - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
32   - mkdir -p haskell-ide-engine
33   - cd $HOME/haskell-ide-engine
34   - git init
35   - git remote add origin https://github.com/haskell/haskell-ide-engine.git
36   - git pull origin master
37   - git checkout f5c903f31ef5a7ee75984faf2e6ccc0a06ab23eb
38   - git submodule init
39   - git submodule sync
40   - git submodule update --init
41   - stack --no-terminal --skip-ghc-check -j2 install
42   - stack exec hoogle generate
43   - cd $TRAVIS_BUILD_DIR
44   - npm update
45   - npm i -g javascript-typescript-langserver
46
47 script:
48   - stack test