Skip to content

Commit

Permalink
TravisCI configuration to integrate SonarQube public instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Iosue committed Jun 26, 2017
1 parent ca3e233 commit b41a380
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 33 deletions.
50 changes: 20 additions & 30 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,28 @@
sudo: true

language: android

install: true
addons:
sonarqube:
organization: federicoiosue-github
token:
secure: Sfwikm7yiseQYSAu0NTIdnZNa/yLrd9RwN/11/XuKHWVOGKsd2Q6FnevlFhVQp4iXeRPtez5/CBvIMn+yR+OTxdWmhrCVU/NEIgkGXkmonAAg/Y46++hWhL8/Fnpa31W+yZ8DBaKKLISMbSGxauwmBvGawZwTT8YbNS3SPGW8PA=
jdk:
- oraclejdk8

- oraclejdk8
branches:
only:
- develop
- master

- develop
- master
android:
components:
- tools
- tools
- platform-tools
- build-tools-25.0.2
- android-23
#- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
#- addon-google_apis-google-19
# - sys-img-armeabi-v7a-android-24
- tools
- tools
- platform-tools
- build-tools-25.0.2
- android-23
- extra-google-m2repository
- extra-android-m2repository
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
#before_script:
# - echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a
# - emulator -avd test -no-skin -no-audio -no-window &
# - android-wait-for-emulator
# - adb shell input keyevent 82 &

# Build
script: ./gradlew clean build


- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
script: "./gradlew clean build sonarqube"
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sonarqube {
property "sonar.projectName", "Omni Notes"
property "sonar.projectKey", "omni-notes"
property 'sonar.projectVersion', project.VERSION_NAME
property "sonar.host.url", "http://localhost:9000"
property "sonar.host.url", "https://sonarcloud.io"
property 'sonar.sourceEncoding', 'UTF-8'
property 'sonar.language', 'java'
}
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ CRASH_REPORTING_URL=

# App's version check for update dialog
VERSION_CHECK_URL=
# Google Maps API key to provide addresses autocompletion feature
MAPS_API_KEY=

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

0 comments on commit b41a380

Please sign in to comment.