Skip to content

Commit af4238d

Browse files
committed
changed project name added in sonar qube to travis for code checkin
1 parent 306f663 commit af4238d

File tree

6 files changed

+53
-11
lines changed

6 files changed

+53
-11
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,17 @@
1010

1111
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
1212
hs_err_pid*
13+
14+
### IntelliJ Idea
15+
#.idea/
16+
*.iml
17+
*.ipr
18+
*.iws
19+
20+
### Eclipse
21+
.settings/
22+
.classpath
23+
.project
24+
25+
### Maven
26+
target/

.idea/runConfigurations/Run_Nunit_SampleTest_.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.travis.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
os: osx
22
language: java
3-
sudo: false # faster builds
4-
3+
sudo: false
4+
addons:
5+
sonarqube:
6+
token:
7+
secure: f7ee339e87b3a7125b95957b3194ff6252870eb4
8+
jdk:
9+
- oraclejdk8
10+
script:
11+
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
12+
cache:
13+
directories:
14+
- $HOME/.m2/repository
15+
- $HOME/.sonar/cache
516
before_install:
6-
- brew update
7-
- brew install geckodriver
8-
- brew cask install firefox
9-
17+
- brew update
18+
- brew install geckodriver
19+
- brew cask install firefox
1020
after_success:
11-
- mvn clean package
12-
- bash <(curl -s https://codecov.io/bash)
21+
- mvn clean package
22+
- bash <(curl -s https://codecov.io/bash)
23+
env:
24+
global:
25+
secure: RN0oZzxNTklGPhofZ1KJuADbxpoF2Jcw+bkIzXPIXi/n+gAYHNYNjuMCsb7vx/sIm1fvgQDQFTW2gllvmdYRWribx0Gxv4YeAG22KQxa7lYfogMm+rsrKEU4lZOcqWTYmvI1Py+d1WT13xGJXJUdX74703yPeefUoLf5dpo9OczqBfEKqVXbwJztgr2CNeSbp8ahtjzaoqqA3OeNz0Ia1bzIAhA7ZyXJ4t9j8YRe+0rkJrjQpKfWeUWdkiB1ydHy191kOkWVoIRyC2jVySyVRypFPg5am5nP76ZRjsgTvvPz7at5jn/S3zWvP8Hr+zTuAT916OP3a5GUE2za1KQQVV3t/FY4oyK9NDRNOPG+YxbmXir2djmOksnkC8tTZ7EprZkuhLJINwbQ1uf5vwjsc0K4MqvK+AmkschNf280lUvhUVptdMUAM0zWErQsYQvsUDqylFber9Z8f2x2SY4kwASrKhjg0FpJuZkPWf2N6o6/iFP2R0C4rXYyluGgLHQvVpb94tvhjN/0+YDTRbif0mvDFR04Jt29VvmnXDkEsg2SUcNky1HoyA+USwnwZsJ1LlGAAIx0W/8hgCUqZ4RKa1mNmn4qMmpqQCl11THjnQOievts7bJn7dCMhL8BtmBQjW0YtJumRl2SIpeG6Ci8SZq0GrGaS7sQQMjle0UtXR8=

javajenkins.iml renamed to basic-selenium-java.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<output url="file://$MODULE_DIR$/target/classes" />
55
<output-test url="file://$MODULE_DIR$/target/test-classes" />
66
<content url="file://$MODULE_DIR$">
7-
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
87
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
8+
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
99
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
1010
<excludeFolder url="file://$MODULE_DIR$/target" />
1111
</content>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>io.lazycoder.sample</groupId>
8-
<artifactId>javajenkins</artifactId>
8+
<artifactId>basic-selenium-java</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

1111

sonar-project.properties

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# must be unique in a given SonarQube instance
3+
sonar.projectKey=basic.selenium.java
4+
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
5+
sonar.projectName=Basic Selenium Java
6+
sonar.projectVersion=1.0
7+
8+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
9+
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
10+
# If not set, SonarQube starts looking for source code from the directory containing
11+
# the sonar-project.properties file.
12+
sonar.sources=.
13+
14+
# Encoding of the source code. Default is default system encoding
15+
#sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)