Explicitly specify copy on windows
[lsp-test.git] / .travis.yml
index 8a6fd8040dc237f0f5f6d54de70af8412d7ee6c5..3f113ef4224a03d1b9ae3900dc02bee0aff25157 100644 (file)
@@ -37,10 +37,12 @@ addons:
 before_install:
 - |
   if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
-    choco install ghc cabal nodejs
+    choco source add -n mistuke -s https://www.myget.org/F/mistuke/api/v2
+    choco install cabal-head -pre
+    choco install ghc --ignore-dependencies
+    choco install nodejs
     /C/ProgramData/chocolatey/bin/RefreshEnv.cmd
     export PATH=/C/ProgramData/chocolatey/lib/ghc/tools/ghc-8.6.5/bin:${PATH}
-    /C/ProgramData/chocolatey/bin/RefreshEnv.cmd
   fi
 # these are taken from the haskell language setup
 - export PATH=/opt/ghc/8.6.5/bin:${PATH}
@@ -55,8 +57,19 @@ before_install:
 - git checkout abdb097f39e135deaf321a604c95f16cbda32678
 - git submodule update --init
 - cabal v2-update
-- cabal v2-install hie -j2 --overwrite-policy=always
-- cabal v2-install hoogle -j2 --overwrite-policy=always
+- cabal --version
+- |
+  if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
+    cabal v2-install hie -j2 --overwrite-policy=always --install-method=copy --installdir=~/.cabal/bin
+  else
+    cabal v2-install hie -j2 --overwrite-policy=always
+  fi
+- |
+  if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
+    cabal v2-install hoogle -j2 --overwrite-policy=always --install-method=copy --installdir=~/.cabal/bin
+  else
+    cabal v2-install hoogle -j2 --overwrite-policy=always
+  fi
 - hoogle generate
 - popd
 # needs to be old-install for cabal-helper to find it