-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated Build Process (Travis CI) (#2)
* add travis and codecov * add badges * remove settings.xml * add settings.xml * Add jacoco to pom.xml * add Sonar * Update pom.xml Thanks Marco! Co-Authored-By: Marco Rizzi <[email protected]>
- Loading branch information
1 parent
a8d2137
commit 7eb78fe
Showing
4 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
language: java | ||
notifications: | ||
email: false | ||
jdk: | ||
- openjdk8 | ||
addons: | ||
sonarcloud: | ||
organization: project-xavier | ||
token: | ||
secure: $SONAR_TOKEN | ||
install: | ||
- cp ./configuration/settings.xml $HOME/.m2/settings.xml | ||
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V | ||
jobs: | ||
include: | ||
- stage: Test | ||
script: | ||
- mvn test -Pcoverage | ||
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sonar-scanner; fi' | ||
- bash <(curl -s https://codecov.io/bash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
sonar.projectKey=project-xavier_xavier-analytics | ||
sonar.projectName=Xavier Analytics | ||
|
||
# ===================================================== | ||
# Meta-data for the project | ||
# ===================================================== | ||
|
||
sonar.links.homepage=https://github.com/project-xavier/xavier-analytics | ||
sonar.links.ci=https://travis-ci.org/project-xavier/xavier-analytics | ||
sonar.links.scm=https://github.com/project-xavier/xavier-analytics | ||
sonar.links.issue=https://github.com/project-xavier/xavier-analytics/issues | ||
|
||
# ===================================================== | ||
# Properties that will be shared amongst all modules | ||
# ===================================================== | ||
|
||
sonar.host.url=https://sonarcloud.io | ||
sonar.organization=project-xavier | ||
sonar.sources=src | ||
|
||
# ===================================================== | ||
# Java config | ||
# ===================================================== | ||
sonar.java.source=1.8 | ||
sonar.java.binaries=. | ||
|
||
# ===================================================== | ||
# Source Analysis | ||
# ===================================================== | ||
sonar.exclusions=**/*Test.java | ||
sonar.test.exclusions=**/*Test.java |