Skip to content

Commit

Permalink
Merge pull request #25 from luan-cestari/travis_update
Browse files Browse the repository at this point in the history
Travis update
  • Loading branch information
jewzaam committed Jan 22, 2015
2 parents 2c42ede + f9d04b1 commit f54f967
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 15 deletions.
33 changes: 19 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
language: java
jdk:
- openjdk7
- oraclejdk8
- openjdk7
- oraclejdk8
before_install:
- cp ./etc/settings.xml ~/.m2/
after_success:
- "[[ $TRAVIS_BRANCH == \"master\" ]] && [[ $TRAVIS_JDK_VERSION == \"openjdk7\" ]] && { mvn clean deploy -DskipTests; };"
- mvn clean test jacoco:report coveralls:jacoco
- cp ./etc/settings.xml ~/.m2/
- cp ./etc/onFailure.sh ~/
- cp ./etc/onSuccess.sh ~/
- chmod 777 ~/onFailure.sh
- chmod 777 ~/onSuccess.sh
script:
- mvn -B clean verify cobertura:cobertura coveralls:report
after_failure: ~/onFailure.sh
after_success: ~/onSuccess.sh
notifications:
email: false
irc:
channels:
- chat.freenode.net#lightblue
email: false
irc:
channels:
- chat.freenode.net#lightblue
on_success: always
flowdock: 7496abec1be386352676d957bb66e027
flowdock: 7496abec1be386352676d957bb66e027
env:
global:
- secure: BiobCgn6K201T4SjEwr3PqY9dl9Comw8mq3XppO33ahAl995f/sXvorSpMRiKJkuT27MOQGhH6lTYQBy32jbeShQaI3HIyEYyi8KaO6AM+CmaRGN5t2E3Oe0WmzUy1x3aQKj9k8CC4/X3fhHQD1yaANJWZz5qeumcQgYKeb5ojE=
- secure: n5fgYW+8pPWzu2Mvhgc/3A3oW63JwxD23rZD8GfW02jvJTQ8tJuNwKfn+o2ONcvugZ+xaZ+Ev4qx3CTBnkAwm45PJBgIElievSB1VbK/uQsQnEiBa6EqgleRRzrMEwaTG0CrHRCk3VmGspGIEC7M48NHqyRBtzn6DhwB1zhbPUg=
global:
- secure: BiobCgn6K201T4SjEwr3PqY9dl9Comw8mq3XppO33ahAl995f/sXvorSpMRiKJkuT27MOQGhH6lTYQBy32jbeShQaI3HIyEYyi8KaO6AM+CmaRGN5t2E3Oe0WmzUy1x3aQKj9k8CC4/X3fhHQD1yaANJWZz5qeumcQgYKeb5ojE=
- secure: n5fgYW+8pPWzu2Mvhgc/3A3oW63JwxD23rZD8GfW02jvJTQ8tJuNwKfn+o2ONcvugZ+xaZ+Ev4qx3CTBnkAwm45PJBgIElievSB1VbK/uQsQnEiBa6EqgleRRzrMEwaTG0CrHRCk3VmGspGIEC7M48NHqyRBtzn6DhwB1zhbPUg=
6 changes: 6 additions & 0 deletions etc/onFailure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh

echo "DEBUG TRAVIS BUILD FAILURE"
echo "Current directory is $(pwd)"
echo "Sunfire reports"
for i in `find . -type d -name surefire-reports` ; do for f in $i/*.txt; do echo $f : `cat $f`; done done
5 changes: 5 additions & 0 deletions etc/onSuccess.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh

echo "DEPLOY MASTER TRAVIS BUILD"
echo "Current directory is $(pwd)"
'[[ $TRAVIS_BRANCH == "master" ]] && [[ $TRAVIS_JDK_VERSION == "openjdk7" ]] && { mvn clean deploy -DskipTests; };'
2 changes: 2 additions & 0 deletions etc/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ git push origin master --tags

# perform release
mvn release:perform -P release || exit

mvn clean deploy
13 changes: 12 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,18 @@
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>2.2.0</version>
<version>3.0.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.6</version>
<configuration>
<format>xml</format>
<maxmem>256m</maxmem>
<!-- aggregated reports for multi-module projects -->
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
Expand Down

0 comments on commit f54f967

Please sign in to comment.