Skip to content

Commit 0dbbba1

Browse files
sonarcloud settings
1 parent b65fd26 commit 0dbbba1

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
1+
dist: trusty
2+
3+
cache:
4+
directories:
5+
- $HOME/.m2
6+
7+
addons:
8+
sonarcloud:
9+
organization: "bordertech-github"
10+
token:
11+
secure: $SONAR_TOKEN
12+
113
before_install:
214
- echo "MAVEN_OPTS='-Xmx512m -XX:MaxPermSize=128m'" > ~/.mavenrc
315
- mvn clean
416

517
language: Java
618
jdk:
7-
- oraclejdk8
19+
- oraclejdk8
820

921
## Travis installs the project with the following maven command:- "mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V"
1022
script:
11-
- mvn test
23+
- mvn package sonar:sonar -Dsonar.projectKey="bordertech-java-common"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
Reusable build configuration for for BorderTech open source projects.
44

55
## Status
6-
76
[![Build Status](https://travis-ci.com/BorderTech/java-common.svg?branch=master)](https://travis-ci.com/BorderTech/java-common)
7+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=bordertech-java-common&metric=alert_status)](https://sonarcloud.io/dashboard?id=bordertech-java-common)
8+
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=bordertech-java-common&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=bordertech-java-common)
89
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c7a2226acd574943af9ae966c54b05e6)](https://app.codacy.com/app/BorderTech/java-common?utm_source=github.com&utm_medium=referral&utm_content=BorderTech/java-common&utm_campaign=Badge_Grade_Dashboard)
910
[![Maven Central](https://img.shields.io/maven-central/v/com.github.bordertech.common/bordertech-parent.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.bordertech.common%22%20AND%20a:%22bordertech-parent%22)
1011

0 commit comments

Comments
 (0)