diff --git a/.travis.yml b/.travis.yml
index e4855398b3ee5a9e0481eefec17ab549f15efb38..96e697d92746aa2ada028f5985dd495d86d87a18 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,9 +19,8 @@ before_script:
 
 script:
     - make install
-
-after_script:
     - cd ../rundir
     - ../install/bin/mcplexample_write myfile.mcpl
-    - ../install/bin/mcplexample_read myfile.mcpl
+    - ../install/bin/mcplexample_read myfile.mcpl.gz
+    - ../install/bin/mcplexample_read nonexistingfile.mcpl