Update apt packages
[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     update: true
23   homebrew:
24     packages:
25       - haskell-stack
26       - npm
27
28 before_install:
29   - mkdir -p ~/.local/bin
30   - export PATH=$HOME/.local/bin:$PATH
31   - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install haskell-stack; fi
32   # - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
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 f5c903f31ef5a7ee75984faf2e6ccc0a06ab23eb
39   - git submodule init
40   - git submodule sync
41   - git submodule update --init
42   - stack --no-terminal --skip-ghc-check -j2 install
43   - stack exec hoogle generate
44   - cd $TRAVIS_BUILD_DIR
45   - npm update
46   - npm i -g javascript-typescript-langserver
47
48 script:
49   - stack test