From: Peter Rabbitson Date: Thu, 8 Oct 2015 23:01:34 +0000 (+0200) Subject: (travis) Stop using the ramdisk for MySQL/Pg data X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=06278456a950ad6e8bf9920f77e6d212f0d8b474;p=dbsrgits%2FDBIx-Class.git (travis) Stop using the ramdisk for MySQL/Pg data Given the very low amount of RAM, the travis setup DOES NOT HELP. Instead of fishing out the changed configs, just symlink the dirs back where they belong --- diff --git a/maint/travis-ci_scripts/10_before_install.bash b/maint/travis-ci_scripts/10_before_install.bash index 7f6c5c3..55acf6e 100755 --- a/maint/travis-ci_scripts/10_before_install.bash +++ b/maint/travis-ci_scripts/10_before_install.bash @@ -2,11 +2,18 @@ export SHORT_CIRCUIT_SMOKE -# Stop pre-started RDBMS and sync for some settle time +# Stop pre-started RDBMS, move their data back to disk (save RAM) +# sync for some settle time run_or_err "Stopping MySQL" "sudo /etc/init.d/mysql stop" run_or_err "Stopping PostgreSQL" "sudo /etc/init.d/postgresql stop || /bin/true" /bin/sync +for d in mysql postgresql ; do + sudo rm -rf /var/lib/$d + sudo mv /var/ramfs/$d /var/lib/ + sudo ln -s /var/lib/$d /var/ramfs/$d +done + # Sanity check VM before continuing echo " =============================================================================