diff --git a/.travis.yml b/.travis.yml index c9d60f706..1fe2a3ce9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,11 @@ +addons: + artifacts: + debug: true + paths: [libs.zip, build.zip, testbuild.zip] + target_paths: 0641e071-670e-45e3-b332-071bbad413c7 +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-28 18:06:04.247709 diff --git a/df-build.sh b/df-build.sh new file mode 100755 index 000000000..55a0ded9a --- /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-28 18:06:04.248002