Use copying on windows
[lsp-test.git] / .travis.yml
index 5da16874d4d842b2bb43c61b42a1d699fcd16214..e2b0ec834e8632dbf670bffd5babdfee63993942 100644 (file)
@@ -37,6 +37,7 @@ addons:
 before_install:
 - |
   if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
+    choco source add -n mistuke -s https://www.myget.org/F/mistuke/api/v2
     choco install cabal-head -pre
     choco install ghc nodejs
     /C/ProgramData/chocolatey/bin/RefreshEnv.cmd
@@ -55,8 +56,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