Try circleCI binary
[lsp-test.git] / .travis.yml
1 language: haskell
2 ghc:
3   - "8.2.2"
4   - "8.4.3"
5
6 sudo: false
7
8 # Caching so the next build will be fast too.
9 cache:
10   directories:
11   # - $HOME/.stack
12   - $HOME/haskell-ide-engine/dist
13   - $HOME/haskell-ide-engine/dist-newstyle
14
15 addons:
16   apt:
17     packages:
18     - npm
19     - hoogle
20
21 before_install:
22   - cd $HOME
23   - wget https://877-129435383-gh.circle-artifacts.com/0/bin/hie
24   - export PATH=$HOME:$PATH
25   # - mkdir -p haskell-ide-engine
26   # - cd haskell-ide-engine
27   # - git init
28   # - git remote add origin https://github.com/Bubba/haskell-ide-engine.git
29   # - git pull origin heirarchal-document-symbols
30   # - git submodule init
31   # - git submodule sync
32   # - git submodule update
33   # - cabal new-configure
34   # - cabal new-build -j2
35   # - export PATH=$HOME/haskell-ide-engine/dist-newstyle/build/*/ghc-*/haskell-ide-engine-*/c/hie/build/hie/hie:$PATH
36   - hoogle generate
37   - cd $TRAVIS_BUILD_DIR
38   - npm update
39   - npm i -g javascript-typescript-langserver
40
41 script:
42   - cabal configure --enable-tests --enable-coverage
43   - cabal build
44   - cabal test --show-details=streaming
45 after_script:
46   - cabal install codecov-haskell --bindir=$HOME
47   - codecov-haskell