Skip to content

Commit

Permalink
Updating travis.yml and pom.xml for coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
oskopek committed Dec 26, 2013
1 parent b00acbd commit 199a488
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 17 deletions.
34 changes: 19 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
language: java

jdk:
- openjdk7
- oraclejdk7
- oraclejdk8
- openjdk7
- oraclejdk7
- oraclejdk8

env:
global:
- WILDFLY="8.0.0.Beta1"
- JBOSS_HOME=$HOME/wildfly-$WILDFLY
global:
- WILDFLY="8.0.0.Beta1"
- JBOSS_HOME=$HOME/wildfly-$WILDFLY
- secure: WrQYhD3HBLqpKj83AxUH+Gf1EL1vlAX/kcfTAMPSJdjyIcYR/U1b0BYl9ne8Glro8UopZrH8X+3I0oP6GXXG7ihnb8L2sawCutC9EyccQOvFcfuMttSMhTpJpnLSLqEw5Gdp3qb4WDHOFALfo0G4hd/Yr2iIxSp/x6DQAuIz76M=

cache:
directories:
- $HOME/.m2
directories:
- $HOME/.m2

before_script:
- export ROOT_DIR=`pwd`
- cd $HOME
- wget http://download.jboss.org/wildfly/$WILDFLY/wildfly-$WILDFLY.tar.gz
- tar xfz wildfly-$WILDFLY.tar.gz
- cd $ROOT_DIR
- cp carcv-webapp/src/test/resources/jboss_configuration_standalone/standalone.xml $JBOSS_HOME/standalone/configuration/standalone.xml
- export ROOT_DIR=`pwd`
- cd $HOME
- wget http://download.jboss.org/wildfly/$WILDFLY/wildfly-$WILDFLY.tar.gz
- tar xfz wildfly-$WILDFLY.tar.gz
- cd $ROOT_DIR
- cp carcv-webapp/src/test/resources/jboss_configuration_standalone/standalone.xml $JBOSS_HOME/standalone/configuration/standalone.xml

script: "mvn clean verify -Pwildfly-it-travis"

install: /bin/true

after_success:
- mvn clean cobertura:cobertura coveralls:cobertura -Pwildfly-it-travis

notifications:
irc:
channels:
- "irc.freenode.org#carcv"
on_success: change
on_failure: always
template:
- "%{repository} (%{branch}:%{commit} by %{author}): %{message} (%{build_url})"
- '%{repository} (%{branch}:%{commit} by %{author}): %{message} (%{build_url})'
15 changes: 13 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.6</version>
<configuration>
<configuration>
<format>xml</format>
<maxmem>256m</maxmem>
<aggregate>true</aggregate>
<check>
<branchRate>85</branchRate>
<lineRate>85</lineRate>
Expand All @@ -68,6 +71,14 @@
</execution>
</executions> -->
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>2.1.0</version>
<configuration>
<repoToken>${env.COVERALLS_TOKEN}</repoToken>
</configuration>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -122,4 +133,4 @@
</modules>
</profile>
</profiles>
</project>
</project>

0 comments on commit 199a488

Please sign in to comment.