From b6a56ca52c947978c93e9d7294f2699ff699ea41 Mon Sep 17 00:00:00 2001 From: Florian Staudacher Date: Fri, 6 Apr 2012 00:24:08 +0200 Subject: [PATCH] create a 64MB swafile on travis --- script/ci/before.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/ci/before.sh b/script/ci/before.sh index ca34bd676..4e48e425e 100755 --- a/script/ci/before.sh +++ b/script/ci/before.sh @@ -12,6 +12,12 @@ sh -e /etc/init.d/xvfb start #echo "Regenerating CSS files" #bundle exec sass -q --update public/stylesheets/sass/:public/stylesheets/ +# setup swapfile +echo "creating a swapfile" +sudo dd if=/dev/zero of=swapfile bs=1M count=64 +sudo mkswap swapfile +sudo swapon swapfile + # Create a database.yml for the right database echo "Setting up database.yml for $DB" cp config/database.yml.example config/database.yml