You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by mr...@apache.org on 2017/08/24 20:36:56 UTC

[incubator-openwhisk-wskdeploy] branch master updated: Fail the travis build as early as possible (#384)

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

mrutkowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-wskdeploy.git


The following commit(s) were added to refs/heads/master by this push:
     new 4bc8eb9  Fail the travis build as early as possible (#384)
4bc8eb9 is described below

commit 4bc8eb9af135ea4043bebddcbcda4c9d1a59a3a0
Author: Vincent <sh...@us.ibm.com>
AuthorDate: Thu Aug 24 16:36:54 2017 -0400

    Fail the travis build as early as possible (#384)
---
 .travis.yml                                      |  8 +-------
 tools/travis/{install_openwhisk.sh => script.sh} | 11 +++++++++++
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 26af2d7..814184a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,13 +22,7 @@ install:
   - go get -u github.com/stretchr/testify
 
 script:
-  - ./tools/travis/scancode.sh
-  - make lint
-  - make build
-  - export PATH=$PATH:$TRAVIS_BUILD_DIR;
-  - export OPENWHISK_HOME="$(dirname "$TRAVIS_BUILD_DIR")/openwhisk"
-  - ./tools/travis/install_openwhisk.sh
-  - make integration_test
+  - ./tools/travis/script.sh
 
 after_success:
   - DEPLOY_BUILD_READY=true
diff --git a/tools/travis/install_openwhisk.sh b/tools/travis/script.sh
similarity index 78%
rename from tools/travis/install_openwhisk.sh
rename to tools/travis/script.sh
index 0589480..9574bd0 100755
--- a/tools/travis/install_openwhisk.sh
+++ b/tools/travis/script.sh
@@ -2,6 +2,12 @@
 
 set -e
 
+cd $TRAVIS_BUILD_DIR
+./tools/travis/scancode.sh
+make lint
+make build
+export PATH=$PATH:$TRAVIS_BUILD_DIR
+
 HOMEDIR="$(dirname "$TRAVIS_BUILD_DIR")"
 cd $HOMEDIR
 
@@ -30,3 +36,8 @@ cd $WHISKDIR
 cd $WHISKDIR/ansible
 $ANSIBLE_CMD wipe.yml
 $ANSIBLE_CMD openwhisk.yml
+
+export OPENWHISK_HOME="$(dirname "$TRAVIS_BUILD_DIR")/openwhisk"
+
+cd $TRAVIS_BUILD_DIR
+make integration_test
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].