Pick correct stack.yaml
[lsp-test.git] / .travis.yml
index 9d023f87de5c92c19397b697060b39463499060b..d2cfa2e6f409cbfb033dbb58889893066a3db023 100644 (file)
@@ -17,7 +17,6 @@ addons:
   apt:
     packages:
     - npm
-    - hoogle
 
 before_install:
   - printenv
@@ -25,7 +24,7 @@ before_install:
   - export PATH=$HOME/.local/bin:$PATH
   - travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
   - stack config set system-ghc --global true
-  - export PATH=/opt/ghc/8.4.3/bin:$PATH
+  - export PATH=/opt/ghc/8.4.3/bin:$PATH
   # - sh .download-hie.sh
   # - export PATH=$TRAVIS_BUILD_DIR:$PATH
   # - hie version
@@ -33,9 +32,14 @@ before_install:
   - cd $HOME/haskell-ide-engine
   - git init
   - git remote add origin https://github.com/haskell/haskell-ide-engine.git
-  - git pull
-  - stack --no-terminal install
+  - git pull origin master
+  - git submodule init
+  - git submodule sync
+  - git submodule update --init
+  - stack --no-terminal --skip-ghc-check -j2 install --stack-yaml=stack-$TRAVIS_HASKELL_VERSION.yaml
+  - stack exec hoogle generate
   - cd $TRAVIS_BUILD_DIR
+  - hie --version
   # - git submodule init
   # - git submodule sync
   # - git submodule update
@@ -46,6 +50,5 @@ before_install:
   - npm i -g javascript-typescript-langserver
 
 script:
-  - hoogle generate
-  # - cabal configure --enable-tests --enable-coverage
-  # - cabal test --show-details=streaming
+  - cabal configure --enable-tests
+  - cabal test --show-details=streaming