Skip to content

Commit ab14da1

Browse files
author
Brent Yorgey
committedNov 16, 2013
use hdiff since hackage is down
1 parent 0167b46 commit ab14da1

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
 

‎config

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
-- This provides a custom ~/.cabal/config file for use when hackage is down that should work on unix
2+
--
3+
-- This is particularly useful for travis-ci to get it to stop complaining
4+
-- about a broken build when everything is still correct on our end.
5+
--
6+
-- This uses Luite Stegeman's mirror of hackage provided by his 'hdiff' site instead
7+
--
8+
-- To enable this, uncomment the before_script in .travis.yml
9+
10+
remote-repo: hdiff.luite.com:http://hdiff.luite.com/packages/archive
11+
remote-repo-cache: ~/.cabal/packages
12+
world-file: ~/.cabal/world
13+
build-summary: ~/.cabal/logs/build.log
14+
remote-build-reporting: anonymous
15+
install-dirs user
16+
install-dirs global

‎scripts/before_install.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ sudo add-apt-repository -y ppa:hvr/ghc\
1717
cd $DEP
1818
if git branch -a |grep -x " remotes/origin/${HEAD_BRANCH}" > /dev/null; then git checkout ${HEAD_BRANCH}; fi
1919
cd ..
20-
done
20+
done\
21+
# && $CABAL update
22+
# Uncomment whenever hackage is down.
23+
&& mkdir -p ~/.cabal && cp travis/config ~/.cabal/config && $CABAL update

0 commit comments

Comments
 (0)