Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.8 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.8 KB

Sample for Android (Java)

CircleCI

This is the sample continuous integrated project for Android (Java).

What is this repository?

  • Lint: Configured lint setting with monstar-lab/gradle-android-ci-check.
    • CheckStyle
    • Findbugs
    • PMD/PMD-CPD
    • Android Lint
  • Build: Configured build setting. e.g. signingConfigs, buildTypes
  • CircleCI: Lint, Test, and Build in CircleCI.
  • PR Comment by Danger: Danger configuration is included. Lint error comes as PR comment.

How to setup

  1. Setup CircleCI build.
    • Turn "On" "Only build pull requests".
  2. Copy or refer to below files. diff
    • .circleci/config.yml
    • Dangerfile
    • Gemfile
    • Gemfile.lock : If you want newer version, please exec bundle update.
    • app/build.gradle
    • app/keystores/debug.keystore : Please get from local.
    • app/keystores/release.jks : Please get or create.
  3. Set environment variable.
    • DANGER_GITHUB_API_TOKEN : token for check bot
    • ANDROID_KEYSTORE_PASSWORD : password for release keystore
    • ANDROID_KEYSTORE_ALIAS : alias for release keystore
    • ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD : alias's password for release keystore

Customize

This repository is targeting for very simple project.

But in real world, we need to work for complex project.

We have some advice for customizing configuration in Wiki. Please refer to it.