Skip to content

Commit

Permalink
Merge pull request #99 from apache/LicenseSwap
Browse files Browse the repository at this point in the history
Update pom with cobertura / coveralls
  • Loading branch information
leerho committed Jun 14, 2019
2 parents f96989e + 9aa8cbd commit eea9731
Show file tree
Hide file tree
Showing 2 changed files with 215 additions and 278 deletions.
26 changes: 21 additions & 5 deletions .travis.yml
@@ -1,25 +1,41 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# http://docs.travis-ci.com/user/customizing-the-build/

# Execute Maven to create Cobertura report and submit Coveralls data:
#. mvn cobertura:cobertura coveralls:report

language: java

sudo: false # faster builds

jdk:
- oraclejdk8
#TODO-JDK9: - oraclejdk9

install:
- mvn install -Dmaven.javadoc.skip=true -Dsource.skip=true -DskipTests=true -Dgpg.skip=true
#TODO-JDK9: - mvn install -Dmaven.compiler.fork=true -Dmaven.javadoc.skip=true -Dsource.skip=true -DskipTests=true -Dgpg.skip=true -Pstrict

before_script:
- _JAVA_OPTIONS="-Xmx4g -Xms1g"

script:
- mvn clean compile test -Dgpg.skip=true
#TODO-JDK9: - mvn clean compile test -Dgpg.skip=true -Pstrict -Dmaven.compiler.fork=true

after_success:
- mvn clean test jacoco:report coveralls:report -DrepoToken=$coveralls_token
#TODO-JDK9: - mvn clean test jacoco:report coveralls:report -DrepoToken=$coveralls_token -Pstrict -Dmaven.compiler.fork=true
- mvn clean cobertura:cobertura coveralls:report

notifications:
email: false
Expand Down

0 comments on commit eea9731

Please sign in to comment.