Try caching windows stack directories
[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     - %APPDATA%\Local\Programs\stack
16     - C:\sr
17   timeout: 1000
18
19 addons:
20   apt:
21     packages:
22       - haskell-stack
23       - npm
24     update: true
25   homebrew:
26     packages:
27       - haskell-stack
28       - npm
29
30 before_install:
31   - mkdir -p ~/.local/bin
32   - export PATH=$HOME/.local/bin:$PATH
33   - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install haskell-stack; fi
34   - mkdir -p haskell-ide-engine
35   - cd $HOME/haskell-ide-engine
36   - git init
37   - git remote add origin https://github.com/haskell/haskell-ide-engine.git
38   - git pull origin master
39   - git checkout f5c903f31ef5a7ee75984faf2e6ccc0a06ab23eb
40   - git submodule init
41   - git submodule sync
42   - git submodule update --init
43   - stack --no-terminal --skip-ghc-check -j2 install
44   - stack exec hoogle generate
45   - cd $TRAVIS_BUILD_DIR
46   - npm update
47   - npm i -g javascript-typescript-langserver
48
49 script:
50   - stack test