Skip to content
Browse files

added cabal config so we can work when hackage is down

  • Loading branch information...
1 parent 1b0b772 commit 648e7881ef3c6876fa4d7f21c9e0309d3f9d55e9 @ekmett committed Sep 13, 2012
Showing with 21 additions and 0 deletions.
  1. +5 −0 .travis.yml
  2. +16 −0 config
View
5 .travis.yml
@@ -1,3 +1,8 @@
language: haskell
+# Uncomment the next 4 lines whenever hackage is down.
+# before_install:
+# - mkdir -p ~/.cabal
+# - cp config ~/.cabal/config
+# - cabal update
notifications:
irc: "irc.freenode.org#haskell-lens"
View
16 config
@@ -0,0 +1,16 @@
+-- This provides a custom ~/.cabal/config file for use when hackage is down that should work on unix
+--
+-- This is particularly useful for travis-ci to get it to stop complaining
+-- about a broken build when everything is still correct on our end.
+--
+-- This uses Luite Stegeman's mirror of hackage provided by his 'hdiff' site instead
+--
+-- To enable this, uncomment the before_script in .travis.yml
+
+remote-repo: hdiff.luite.com:http://hdiff.luite.com/packages/archive
+remote-repo-cache: ~/.cabal/packages
+world-file: ~/.cabal/world
+build-summary: ~/.cabal/logs/build.log
+remote-build-reporting: anonymous
+install-dirs user
+install-dirs global

0 comments on commit 648e788

Please sign in to comment.
Something went wrong with that request. Please try again.