Can we install ghc and cabal through homebrew on os x?
authorMoritz Angermann <moritz.angermann@gmail.com>
Wed, 6 Jan 2016 04:26:12 +0000 (12:26 +0800)
committerMoritz Angermann <moritz.angermann@gmail.com>
Wed, 6 Jan 2016 04:26:12 +0000 (12:26 +0800)
.travis.yml

index 13a70d2..33c4c3e 100644 (file)
@@ -18,6 +18,10 @@ addons:
         sources: hvr-ghc
 
 before_install:
+    osx:
+        - brew update
+        - brew outdated ghc || brew upgrade ghc
+        - brew outdated cabal-install || brew upgrade cabal-install
 
     - PATH="$HOME/.cabal/bin:$PATH"
     - PATH="/opt/ghc/$GHCVER/bin:$PATH"