From c3472ef73b187781cae5ed27dc3695ad67b70ff4 Mon Sep 17 00:00:00 2001 From: Manu Sridharan Date: Wed, 25 May 2016 15:09:51 +0200 Subject: [PATCH] More output to debug maven jar script on Travis --- .travis.yml | 5 +++-- build-maven-jars.py | 7 ++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index baaf18cf0..00bd600af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,11 @@ before_install: - "popd" - "mkdir -p $TRAVIS_BUILD_DIR/com.ibm.wala.dalvik.test/lib" - "find /usr/local -name dx.jar -exec cp '{}' $TRAVIS_BUILD_DIR/com.ibm.wala.dalvik.test/lib/dx.jar ';'" -install: mvn clean verify -DskipTests=true -B -q +install: + - ./build-maven-jars.py "install -Dgpg.skip" + - mvn clean verify -DskipTests=true -B -q script: - mvn clean verify -B -q - - ./build-maven-jars.py "install -Dgpg.skip" sudo: false cache: directories: diff --git a/build-maven-jars.py b/build-maven-jars.py index 9a6d1147a..21c607690 100755 --- a/build-maven-jars.py +++ b/build-maven-jars.py @@ -30,6 +30,11 @@ for proj in projects: print full_proj os.chdir(full_proj) mvnCmd = "mvn -f mvncentral.xml clean " + action - subprocess.check_output(mvnCmd, shell=True) + try: + subprocess.check_output(mvnCmd, shell=True) + except subprocess.CalledProcessError as e: + print "OUTPUT" + print e.output + raise os.chdir("..")