From b486b2b1e4b4de9cb2c3989a6acdd4ae3f4ba600 Mon Sep 17 00:00:00 2001
From: Dilawar Singh <dilawars@ncbs.res.in>
Date: Tue, 27 Jun 2017 13:30:58 +0530
Subject: [PATCH] Enabled tests post build and not after success i.e. if test
 failes, the build fails.

---
 .travis.yml | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index f06ff28f..5f523aa4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,10 +47,7 @@ install:
 
 script:
     - gbp buildpackage  --git-ignore-branch --git-ignore-new -uc -us
-    - dpkg -L ../moose*.deb
-    - sudo dpkg -i ../moose*.deb
-
-after_success:
     - cd __moose-core_build && ctest --output-on-failure
+    - sudo dpkg -i ../moose*.deb
     - cd ~ && python -c 'import moose; moose.test( timeout = 10 )'
     - cd ~ && python -c 'import moogli'
-- 
GitLab