summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-08-22 09:39:36 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-08-22 09:39:36 -0700
commit761a61b53e836dab21a1229d982b12042c41d36e (patch)
tree31e418fde8140193926a8ccdf8455eda9d54e984 /.travis.yml
parentcefdc01a93d4085999e7fd121b141e33c1a2e1ad (diff)
Travis: shut down essential services and show memory.
Also after failure.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 65414c85d..0c6d2a143 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -81,6 +81,21 @@ matrix:
before_install:
# Using compiler above sets CC to an invalid value, so unset it
- unset CC
+# shutdown servies on Travis, which may have a memory impact
+# show memory usage before and after shutdown of services
+- sudo service --status-all
+- sudo free -m -t
+- sudo /etc/init.d/mysql stop
+- sudo /etc/init.d/postgresql stop
+- sudo /etc/init.d/couchdb stop
+- sudo /etc/init.d/redis-server stop
+- sudo free -m -t
+
+after_failure:
+# show memory usage again
+- sudo free -m -t
+# show actions of the OOM killer
+- sudo dmesg
# We want to always allow newer versions of packages when building on GHC HEAD
- CABALARGS=""