From edcc71459b37d79fc6a05910c89ac912209430a1 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Tue, 20 Nov 2018 16:32:12 +0100 Subject: [PATCH] Travis: test that service is running --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9a29b512..91b6a8e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,7 @@ addons: - sourceline: 'ppa:opencpu/rapache' - sourceline: 'ppa:nginx/stable' packages: + - curl - devscripts - equivs - gdebi-core @@ -32,7 +33,10 @@ install: - sudo gdebi --n ../opencpu-server_*.deb - sudo gdebi --n ../opencpu-cache_*.deb -script: sudo service apache2 restart +script: + - sudo apt-get remove -y opencpu-cache + - sudo service apache2 restart && sleep 5 + - curl http://localhost/ocpu/info after_failure: