Skip to content

Commit

Permalink
Instrumented by Insights Service for uploading the artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Insights Service EC2 User authored and Insights Service EC2 User committed Apr 5, 2016
1 parent 1fa8189 commit f83fa52
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .travis.yml
@@ -1,12 +1,11 @@
addons:
artifacts:
debug: true
paths: [libs.zip, build.zip, testbuild.zip]
target_paths: 68d9785f-39b4-47ff-a678-21c69eb54f6e
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-04-05 09:16:16.583193
13 changes: 13 additions & 0 deletions 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-04-05 09:16:16.583491

0 comments on commit f83fa52

Please sign in to comment.