Try manually adding ghc to path on windows
authorLuke Lau <luke_lau@icloud.com>
Sat, 8 Jun 2019 19:26:26 +0000 (20:26 +0100)
committerLuke Lau <luke_lau@icloud.com>
Sat, 8 Jun 2019 19:26:26 +0000 (20:26 +0100)
.travis.yml

index 616cc4fa90f61aeb9a7d127edf2d62642daea168..8a6fd8040dc237f0f5f6d54de70af8412d7ee6c5 100644 (file)
@@ -1,10 +1,10 @@
-language: haskell
+language: c
 sudo: false
 
 os:
 - linux
 - osx
-- windows
+- windows
 
 dist: xenial
 
@@ -25,8 +25,8 @@ addons:
     - sourceline: ppa:hvr/ghc
     packages:
     - npm
-    - ghc-8.6.5
-    - cabal-install-2.4
+    - ghc-8.6.5
+    - cabal-install-2.4
   homebrew:
     packages:
     - ghc
@@ -35,11 +35,18 @@ addons:
     update: true
 
 before_install:
-- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install ghc cabal nodejs; /C/ProgramData/chocolatey/bin/RefreshEnv.cmd; fi
+- |
+  if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
+    choco install ghc cabal 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}
-- export PATH=/opt/cabal/2.4/bin:${PATH}
+- export PATH=/opt/ghc/8.6.5/bin:${PATH}
+- export PATH=/opt/cabal/2.4/bin:${PATH}
 - export PATH=$HOME/.cabal/bin:${PATH}
+- ghc --version
 - mkdir -p $HOME/haskell-ide-engine
 - pushd $HOME/haskell-ide-engine
 - git init