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
federicoiosue committed Jun 27, 2017
1 parent ca3e233 commit 10e8b30
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@ captures

# private properties file
omniNotes/gradle.properties

*.log
55 changes: 25 additions & 30 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
sudo: true

language: android

dist: trusty
install: true
addons:
sonarcloud:
organization: federicoiosue-github
token:
secure: Sfwikm7yiseQYSAu0NTIdnZNa/yLrd9RwN/11/XuKHWVOGKsd2Q6FnevlFhVQp4iXeRPtez5/CBvIMn+yR+OTxdWmhrCVU/NEIgkGXkmonAAg/Y46++hWhL8/Fnpa31W+yZ8DBaKKLISMbSGxauwmBvGawZwTT8YbNS3SPGW8PA=
branches:
- develop
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
- sonar-scanner
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=
3 changes: 2 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@

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

sonar.sources=omniNotes/src/main/java
sonar.language=java
sonar.sourceEncoding=UTF-8

sonar.branch=develop

0 comments on commit 10e8b30

Please sign in to comment.