Try out cabal tests
[lsp-test.git] / .travis.yml
1 language: haskell
2 ghc:
3   - "8.2.2"
4   - "8.4.2"
5
6 sudo: false
7
8 # Caching so the next build will be fast too.
9 cache:
10   directories:
11    - dist
12    - dist-newstyle
13   # - $HOME/.stack
14   # - $HOME/haskell-ide-engine/.stack-work
15
16 addons:
17   apt:
18     packages:
19     - npm
20
21 before_install:
22   # Download and unpack the stack executable
23   # - mkdir -p ~/.local/bin
24   # - export PATH=$HOME/.local/bin:$PATH
25   # - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
26     
27   - cd $HOME
28   # It's ok to fail
29   - cd haskell-ide-engine
30   - git init
31   - git remote add origin https://github.com/Bubba/haskell-ide-engine.git
32   - git pull origin heirarchal-document-symbols
33   - git submodule init
34   - git submodule sync
35   - git submodule update
36   - cabal new-update
37   - cabal new-configure
38   - cabal new-build
39   # - export PATH=$HOME/haskell-ide-engine/dist-newstyle/build/*/ghc-*/haskell-ide-engine-*/x/hie/build:$PATH
40   - cp `find dist-newstyle/ -name hie -type f | xargs -x ls -t | head -n1` $HOME/.cabal/bin/
41   # - stack --no-terminal --skip-ghc-check install -j2
42   # - stack exec hoogle generate
43   - cabal install hoogle
44   - hoogle generate
45   - cd $TRAVIS_BUILD_DIR
46   - npm update
47   - npm i -g javascript-typescript-langserver
48
49 script:
50   - cabal configure --enable-tests --enable-coverage
51   - cabal test --show-details=streaming