From fb0aa34f2dc53e0e3cbe0891d3475ea923e5c413 Mon Sep 17 00:00:00 2001 From: Insights Service EC2 User Date: Thu, 31 Mar 2016 13:45:54 +0000 Subject: [PATCH] Instrumented by Insights Service for uploading the artifacts --- .travis.yml | 21 ++++++++++----------- df-build.sh | 13 +++++++++++++ 2 files changed, 23 insertions(+), 11 deletions(-) create mode 100755 df-build.sh diff --git a/.travis.yml b/.travis.yml index c9d60f706..2e3a0804b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,11 @@ +addons: + artifacts: + debug: true + paths: [libs.zip, build.zip, testbuild.zip] + target_paths: 29bf4a07-ff1f-4bca-b864-d50ebf865005 +after_success: ['mvn resources:resources jacoco:merge jacoco:report coveralls:report + -DrepoToken=OL0MbvrGAzu589jSHioduc5jAOhDxqwGe -Pcoveralls -N -B', ./df-build.sh] +before_script: ['mvn formatter:validate'] +jdk: [oraclejdk8, oraclejdk7, openjdk7] language: java - -jdk: - - oraclejdk8 - - oraclejdk7 - - openjdk7 - -before_script: - - mvn formatter:validate - -after_success: - - mvn resources:resources jacoco:merge jacoco:report coveralls:report -DrepoToken=OL0MbvrGAzu589jSHioduc5jAOhDxqwGe -Pcoveralls -N -B +# Modified by Insights Service at 2016-03-31 13:45:54.532498 diff --git a/df-build.sh b/df-build.sh new file mode 100755 index 000000000..4349dd575 --- /dev/null +++ b/df-build.sh @@ -0,0 +1,13 @@ +echo "Build is done by now. Copying dependencies..." +mvn dependency:copy-dependencies || { echo "Error: maven dependency:copy-dependencies failed"; exit 1; } +echo "Cleaning up existing zip if any..." +rm -f libs.zip || { echo "Error: Cleaning lib zip"; exit 1; } +rm -f build.zip || { echo "Error: Cleaning binaries zip"; exit 1; } +rm -f testbuild.zip || { echo "Error: Cleaning test binaries zip"; exit 1; } +mkdir -p target/test-classes;touch target/test-classes/placeholder.class || { echo "Error: Creating placeholder for test-classes"; exit 1; } +echo "Zipping artifacts begin..." +zip libs.zip $(git ls-files -o | grep -e target/dependency/.*jar) || { echo "Error: Zipping libs failed"; exit 1; } +zip build.zip $(git ls-files -o | grep -e target/classes/.*class) || { echo "Error: Zipping binaries failed"; exit 1; } +zip testbuild.zip $(git ls-files -o | grep -e target/test-classes/.*class) || { echo "Error: Zipping test binaries failed"; exit 1; } +echo "Zipping artifacts DONE!!!" +# Modified by Insights Service at 2016-03-31 13:45:54.532826