diff --git a/.travis.yml b/.travis.yml
index f052cd56f69119b725ccdf958777f02c0f6f7231..b04e760bcc7e098d88ee93d95797b5a199ed7b44 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,5 +9,5 @@ before_install:
 
 script:
 - docker run dyngb-trusty:latest sudo mkdir /build
-- docker run dyngb-trusty:latest sudo cd /build;cmake ../repo
-- docker run dyngb-trusty:latest sudo cd /build;make
+- docker run dyngb-trusty:latest sudo -c "cd /build;cmake ../repo"
+- docker run dyngb-trusty:latest sudo -c "cd /build;make"