Skip to content

Commit

Permalink
LIBS-412 - complete renewal (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-eggers authored and Sven Illgen committed Dec 4, 2018
1 parent afc90e3 commit ccb65c3
Show file tree
Hide file tree
Showing 8 changed files with 321 additions and 47 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
sudo: required

language: java

jdk:
- oraclejdk8
- oraclejdk11

cache:
directories:
- $HOME/.m2

install: mvn verify -Dgpg.skip=true

before_install:
- wget -O ~/codacy-coverage-reporter-assembly.jar https://github.com/codacy/codacy-coverage-reporter/releases/download/4.0.5/codacy-coverage-reporter-4.0.5-assembly.jar

after_success:
- java -jar ~/codacy-coverage-reporter-assembly.jar report -l Java -r target/site/jacoco/jacoco.xml
83 changes: 83 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
pipeline
{
agent any

environment
{
deploymentBranch = "master"
mavenExecutable = "mvn-jdk8"
}

triggers
{
cron('H H(0-5) * * *')
pollSCM('@hourly')
}

options
{
buildDiscarder(logRotator(numToKeepStr:'10'))
disableConcurrentBuilds()
skipStagesAfterUnstable()
timeout(time: 1, unit: 'HOURS')
}

stages
{
stage('Compile')
{
steps
{
sh '${mavenExecutable} clean compile test-compile'
}
}

stage('Unit-Tests')
{
steps
{
sh '${mavenExecutable} surefire:test'
}
}

stage('Integration-Tests')
{
when { branch "${env.deploymentBranch}" }

steps
{
sh '${mavenExecutable} failsafe:integration-test failsafe:verify'
}
}

stage('Release')
{
when { branch "${env.deploymentBranch}" }

steps
{
sh '${mavenExecutable} clean deploy -Dmaven.test.skip=true'
}
}

stage('SonarQube')
{
when { branch "${env.deploymentBranch}" }

steps
{
sh '${mavenExecutable} clean verify sonar:sonar -Dsonar.host.url=http://sonarqube.avidesmedia/'
}
}

stage('POM-Analysis')
{
when { branch "${env.deploymentBranch}" }

steps
{
sh '${mavenExecutable} enforcer:enforce'
}
}
}
}
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# sax-xom-parser

[![Maven Central](https://img.shields.io/maven-metadata/v/http/central.maven.org/maven2/com/avides/xml/sax-xom-parser/maven-metadata.xml.svg)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.avides.xml%22%20AND%20a%3A%22sax-xom-parser%22)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/742e793231bd406eba2befe532e5a3c1)](https://www.codacy.com/app/avides-builds/sax-xom-parser)
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/742e793231bd406eba2befe532e5a3c1)](https://www.codacy.com/app/avides-builds/sax-xom-parser)
[![Build Status](https://travis-ci.com/avides/sax-xom-parser.svg?branch=master)](https://travis-ci.com/avides/sax-xom-parser)

XML-streaming-parser with [XOM](http://www.xom.nu/ "XOM")-support

## Dependency
```xml
<dependency>
<groupId>com.avides.xml</groupId>
<artifactId>sax-xom-parser</artifactId>
<version>1.0.0-RELEASE</version>
</dependency>
```
Loading

0 comments on commit ccb65c3

Please sign in to comment.