Skip to content

Commit 10e8b30

Browse files
committed
TravisCI configuration to integrate SonarQube public instance
1 parent ca3e233 commit 10e8b30

File tree

5 files changed

+30
-34
lines changed

5 files changed

+30
-34
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ captures
5555

5656
# private properties file
5757
omniNotes/gradle.properties
58+
59+
*.log

.travis.yml

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,33 @@
11
sudo: true
2-
32
language: android
4-
3+
dist: trusty
4+
install: true
5+
addons:
6+
sonarcloud:
7+
organization: federicoiosue-github
8+
token:
9+
secure: Sfwikm7yiseQYSAu0NTIdnZNa/yLrd9RwN/11/XuKHWVOGKsd2Q6FnevlFhVQp4iXeRPtez5/CBvIMn+yR+OTxdWmhrCVU/NEIgkGXkmonAAg/Y46++hWhL8/Fnpa31W+yZ8DBaKKLISMbSGxauwmBvGawZwTT8YbNS3SPGW8PA=
10+
branches:
11+
- develop
512
jdk:
6-
- oraclejdk8
7-
13+
- oraclejdk8
814
branches:
915
only:
10-
- develop
11-
- master
12-
16+
- develop
17+
- master
1318
android:
1419
components:
15-
- tools
16-
- tools
17-
- platform-tools
18-
- build-tools-25.0.2
19-
- android-23
20-
#- extra-google-google_play_services
21-
- extra-google-m2repository
22-
- extra-android-m2repository
23-
#- addon-google_apis-google-19
24-
# - sys-img-armeabi-v7a-android-24
20+
- tools
21+
- tools
22+
- platform-tools
23+
- build-tools-25.0.2
24+
- android-23
25+
- extra-google-m2repository
26+
- extra-android-m2repository
2527
licenses:
26-
- 'android-sdk-preview-license-.+'
27-
- 'android-sdk-license-.+'
28-
- 'google-gdk-license-.+'
29-
#before_script:
30-
# - echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a
31-
# - emulator -avd test -no-skin -no-audio -no-window &
32-
# - android-wait-for-emulator
33-
# - adb shell input keyevent 82 &
34-
35-
# Build
36-
script: ./gradlew clean build
37-
38-
28+
- android-sdk-preview-license-.+
29+
- android-sdk-license-.+
30+
- google-gdk-license-.+
31+
script:
32+
- ./gradlew clean build
33+
- sonar-scanner

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ sonarqube {
4444
property "sonar.projectName", "Omni Notes"
4545
property "sonar.projectKey", "omni-notes"
4646
property 'sonar.projectVersion', project.VERSION_NAME
47-
property "sonar.host.url", "http://localhost:9000"
47+
property "sonar.host.url", "https://sonarcloud.io"
4848
property 'sonar.sourceEncoding', 'UTF-8'
4949
property 'sonar.language', 'java'
5050
}

gradle.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ CRASH_REPORTING_URL=
3737

3838
# App's version check for update dialog
3939
VERSION_CHECK_URL=
40-
# Google Maps API key to provide addresses autocompletion feature
41-
MAPS_API_KEY=
4240

4341
# Google Maps API key to provide addresses autocompletion feature
4442
MAPS_API_KEY=

sonar-project.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717

1818
sonar.projectKey=omni-notes
1919
sonar.projectName=Omni Notes
20-
sonar.projectVersion=5.0.0 Beta 20
20+
sonar.projectVersion=5.4.0 Beta 1
2121

2222
sonar.sources=omniNotes/src/main/java
2323
sonar.language=java
2424
sonar.sourceEncoding=UTF-8
2525

26+
sonar.branch=develop

0 commit comments

Comments
 (0)