You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2018/10/26 08:23:40 UTC

[camel-k] 01/02: use fail fast with travis

This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 67d4613b761c75ca49cea3559263c1dbb64b6740
Author: nferraro <ni...@gmail.com>
AuthorDate: Fri Oct 26 09:46:49 2018 +0200

    use fail fast with travis
---
 .travis.yml                                                    | 4 +---
 build/{prepare_integration_tests_travis.sh => travis_build.sh} | 7 +++++++
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 13d1d39..9539e08 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,6 +14,4 @@ services:
   - docker
 
 script:
-  - make
-  - ./build/prepare_integration_tests_travis.sh
-  - make test-integration
+  - ./build/travis_build.sh
diff --git a/build/prepare_integration_tests_travis.sh b/build/travis_build.sh
similarity index 94%
rename from build/prepare_integration_tests_travis.sh
rename to build/travis_build.sh
index 4b546dc..2910c3d 100755
--- a/build/prepare_integration_tests_travis.sh
+++ b/build/travis_build.sh
@@ -2,6 +2,9 @@
 
 set -e
 
+# First build the whole project
+make
+
 # set docker0 to promiscuous mode
 sudo ip link set docker0 promisc on
 
@@ -59,3 +62,7 @@ echo "installing camel k cluster resources"
 ./kamel install --cluster-setup
 
 oc login -u developer
+
+
+# Then run integration tests
+make test-integration