Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
BREAKING CHANGE: Add JaCoCo & Sonarqube
Browse files Browse the repository at this point in the history
Update dependencies versions.
Update TravisCI env variables.
  • Loading branch information
aoudiamoncef committed Mar 4, 2018
1 parent 74ce6f1 commit 88355b8
Show file tree
Hide file tree
Showing 12 changed files with 426 additions and 126 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,5 @@ projectFilesBackup1/\.idea/workspace\.xml
\.idea/codeStyleSettings\.xml

app/fabric\.properties

configuration\.tar
20 changes: 6 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ before_install:
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- ls -all
- openssl aes-256-cbc -K $encrypted_1f0900b4d867_key -iv $encrypted_1f0900b4d867_iv -in ${TRAVIS_BUILD_DIR}/app/google-services.json.enc -out ${TRAVIS_BUILD_DIR}/app/google-services.json -d
- openssl aes-256-cbc -K $encrypted_8906d6504312_key -iv $encrypted_8906d6504312_iv -in configuration.tar.enc -out configuration.tar -d
- tar xvf configuration.tar
- mv ${TRAVIS_BUILD_DIR}/google-services.json ${TRAVIS_BUILD_DIR}/app/google-services.json
- cp local.properties.ci local.properties
- ls -all
- source scripts/writeToManifest.sh && copyEnvVarsToManifest
- docker pull influxdb
- docker run --name=influxdb -d -p 127.0.0.1:8086:8086 influxdb
Expand All @@ -33,13 +35,6 @@ env:
- ANDROID_API_LEVEL=27
- ANDROID_BUILD_TOOLS=27.0.3
- ADB_INSTALL_TIMEOUT=5
- secure: lYFnvihaPRXu97v1emVFawOlzExUGFayzzA4fqFEaBdPfvJSMMCcZJUOPFJQKmFmUz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yPaMLUAWPdS4qs06BvNEMgxyIfWcupXNpsuAbzGdHEL7XOINxexc4KsziXNhuztXr3nC73t1MP3V8toLW3OYFrl/3SVBO0wVUjtG/UshyoqL4s2SCBRDJFRm0SIk7PCOz/N28v8MMkrTM/4Dxo9oT7p2HuclHDa8Z7OXlAVsdYS5YuuLNFOXSbg4m6tq0KYeWQC2DTdEwKFUuW1FZLUYUKxsLvI3BHNtP58WiS4Z3TnjetQhwV0NfxwGq2bdRNl7SBCv2YodTlbwRn6aShznOlJAmeDhEmEf6nbK+g5tPVOV0IxmS6Qrv+qvWN9qqrk3f0v4Y0EsiNdy8qkBcm6ZB80TRj8KuRm0QlJARvkvvFCD1bcVSAsCwfGaSZ4U6uFhIpSiUSdcgSmWxdoNgWiwzVj9fj4ClSbNUlg=
android:
components:
- tools
Expand All @@ -55,19 +50,16 @@ script:
- curl -i -XPOST http://127.0.0.1:8086/query --data-urlencode "q=CREATE DATABASE test"
- "./gradlew clean test build"
before_deploy:
- openssl aes-256-cbc -K $encrypted_c4a232eaf55b_key -iv $encrypted_c4a232eaf55b_iv -in ApollineKeyStore.jks.enc -out ApollineKeyStore.jks -d
- cd app/build/outputs/apk/release
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ${TRAVIS_BUILD_DIR}/ApollineKeyStore.jks
-storepass $storepass -keypass $keypass app-release-unsigned.apk apolline
- jarsigner -verbose -tsa http://timestamp.comodoca.com/rfc3161 -sigalg SHA1withRSA -digestalg SHA1 -keystore ${TRAVIS_BUILD_DIR}/ApollineKeystore.jks -storepass $STOREPASS -keypass $KEYPASS app-release-unsigned.apk $ALIAS
- jarsigner -verify app-release-unsigned.apk
- "${ANDROID_HOME}/build-tools/${ANDROID_BUILD_TOOLS}/zipalign -v 4 app-release-unsigned.apk
Apolline.apk"
deploy:
provider: releases
skip_cleanup: true
file: Apolline.apk
api_key:
secure: wNyHnxqWJcwqR6ZwxkY8/xh/7yWedut5c+PX+0aaNtL+xBDzbXlFyf5SqwKrG3/UN+JtiVVtjomrzE7MALiHEUpeqmA1jT5BwirFwB7hFYSHu26p4pwsanZM1tkZxkGW8rlLx75qrud70MOboi3nb2ZoAaJk27khfTViDv8BowrPFTG6X26Lzg0P0dD94s+24cB7KtcdmBlkZvp8uK1xfLYQflAUGPRpFC0lPJujqODZXTyqapXQZPcCDOvG+A1iKNWR175EuAgSwdcqLqp3cB6KGZJ+44ODE2zv3W9sR9bSQ0xQqYjBRaCeIwNmpRyB8UW4rY8zTw/gput2gV/nJZBBE+xDsuLTSVRuqSABTRfPzJVYy6QJ2R936/EIIsIdyzU45a7k48hHOQFWiopabBxm0uilS7T0Y1PNuOUln3SABL7igjGfaPeNH511F9qUDdSUuvaNEFialUk5L7V6syPb8tYQ/sJDRZjE9gk6V5J8Z+Ig9pw9lD/3SAPIi1f5bVD1WNhfy7tHWR4Y+s5gZ7B0T76SKmiVIcgolBTEx0OXiG0Z2ML5pRw8zkj0R016Wq/kjeSqJlQnKFhbLFFB4ZzDH6ac6jIz6FOYqv0gBd5FzoSY31+34CoVaKqEhnCFCtjpR6tVGIHMbRkaSECwCKU4LITTl8borVr3yUly0+8=
api_key: $GH_TOKEN
on:
repo: Apolline-Lille/apolline-android
tags: true
Binary file removed ApollineKeyStore.jks.enc
Binary file not shown.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Supported sensors:
* [Toasty](https://github.com/GrenderG/Toasty) - The usual Android Toast, but with steroids (Colors).
* [Gson](https://github.com/google/gson) - A Java serialization/deserialization library to convert Java Objects into JSON and back.
* [Google Maps Android Heatmap Utility](https://developers.google.com/maps/documentation/android-api/utility/heatmap) - The Google Maps Android API Utility Library includes a heatmap utility, which you can use to add one or more heatmaps to a Google map in your application.

* [Sonar-kotlin](https://github.com/arturbosch/sonar-kotlin) - Kotlin Sonarqube plugin (Unofficial)
* [Detekt](https://github.com/arturbosch/detekt) - Kotlin static code analysis tool. It operates on the abstract syntax tree provided by the Kotlin compiler.
* [JaCoCo](http://www.eclemma.org/jacoco/) - JaCoCo is a free code coverage library for Java, which has been created by the EclEmma team based on the lessons learned from using and integration existing libraries for many years.

## Download (Unreleased)

Expand Down
Loading

0 comments on commit 88355b8

Please sign in to comment.