Install happy
[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
20 before_install:
21   # Download and unpack the stack executable
22   # - mkdir -p ~/.local/bin
23   # - export PATH=$HOME/.local/bin:$PATH
24   # - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
25     
26   - cd $HOME
27   # It's ok to fail
28   - mkdir -p haskell-ide-engine
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-configure
37   - cabal new-build -j2
38   - export PATH=$HOME/haskell-ide-engine/dist-newstyle/build/*/ghc-*/haskell-ide-engine-*/c/hie/build/hie/hie:$PATH
39   # - export PATH=$HOME/haskell-ide-engine/dist-newstyle/build/*/ghc-*/haskell-ide-engine-*/x/hie/build:$PATH
40   # - stack --no-terminal --skip-ghc-check install -j2
41   # - stack exec hoogle generate
42   - cabal install happy hoogle
43   - hoogle generate
44   - cd $TRAVIS_BUILD_DIR
45   - npm update
46   - npm i -g javascript-typescript-langserver
47
48 script:
49   - cabal configure --enable-tests --enable-coverage
50   - cabal build
51   - cabal test --show-details=streaming
52 after_script:
53   - cabal install codecov-haskell
54   - codecov-haskell [options] tests