Add remaining handlers for messages
[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   - 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   - printenv
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   - stack config set system-ghc --global true
27   # - export PATH=/opt/ghc/8.4.3/bin:$PATH
28   # - sh .download-hie.sh
29   # - export PATH=$TRAVIS_BUILD_DIR:$PATH
30   # - hie version
31   - mkdir -p haskell-ide-engine
32   - cd $HOME/haskell-ide-engine
33   - git init
34   - git remote add origin https://github.com/haskell/haskell-ide-engine.git
35   - git pull origin master
36   - git submodule init
37   - git submodule sync
38   - git submodule update --init
39   - stack --no-terminal --skip-ghc-check -j2 install --stack-yaml=stack-$TRAVIS_HASKELL_VERSION.yaml
40   - stack exec hoogle generate --stack-yaml=stack-$TRAVIS_HASKELL_VERSION.yaml
41   - cd $TRAVIS_BUILD_DIR
42   - hie --version
43   # - git submodule init
44   # - git submodule sync
45   # - git submodule update
46   # - cabal new-configure
47   # - cabal new-build -j2
48   # - export PATH=$HOME/haskell-ide-engine/dist-newstyle/build/*/ghc-*/haskell-ide-engine-*/c/hie/build/hie/hie:$PATH
49   - npm update
50   - npm i -g javascript-typescript-langserver
51
52 script:
53   # - stack test --compiler ghc-$TRAVIS_HASKELL_VERSION
54   - cabal configure --enable-tests
55   - cabal test --show-details=streaming