summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-08-21 21:24:21 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-08-21 21:24:21 -0700
commitc462fcafef1613164ea07c18c5301908ea8ad52d (patch)
tree861c64907d3d65631f9ec0e687c5bd44b97d695f /.travis.yml
parent6cba21b4d307408e6ff44de495727fad89cd3069 (diff)
travis: create some swap space.
This may help with regex-tdfa build failures...
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 7ba7bf45a..e0575cc3b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -105,6 +105,11 @@ install:
case "$BUILD" in
stack)
ulimit -n 4096
+ # create some swap because regex-tdfa needs lots of memory
+ # to compile; see https://github.com/snoyberg/keter/issues/76
+ dd if=/dev/zero of=/tmp/swap bs=1M count=1024
+ mkswap /tmp/swap
+ swapon /tmp/swap
stack --no-terminal --install-ghc $ARGS test --flag 'aeson:fast' --only-dependencies --fast --flag pandoc:embed_data_files --test
;;
cabal)