image: circleci/android:api-29-ndk

variables:
  ANDROID_COMPILE_SDK: "28"
  ANDROID_BUILD_TOOLS: "28.0.2"
  ANDROID_SDK_TOOLS:   "4333796"
  ANDROID_NDK: "r18b"
  GIT_SUBMODULE_STRATEGY: recursive

stages:
  - build

lintDebug:
  stage: build
  script:
    - ./gradlew -Pci --console=plain :app:lintBrdDebug -PbuildDir=lint
  only:
    - develop
    - /^release.*$/
  artifacts:
    paths:
    - app/lint/reports/

detekt:
  stage: build
  script:
    - rm -rf app/build/reports/detekt
    - ./gradlew --console=plain detekt
  artifacts:
    paths:
      - app/build/reports/detekt
  only:
    - merge_requests

assembleDebug:
  stage: build
  script:
    - ./gradlew assembleDebug
  only:
    - develop
    - /^release.*$/
  artifacts:
    paths:
    - app/build/outputs/


image: circleci/android:api-29-ndk

variables:
  ANDROID_COMPILE_SDK: "28"
  ANDROID_BUILD_TOOLS: "28.0.2"
  ANDROID_SDK_TOOLS:   "4333796"
  ANDROID_NDK: "r18b"
  GIT_SUBMODULE_STRATEGY: recursive

stages:
  - build

lintDebug:
  stage: build
  script:
    - ./gradlew -Pci --console=plain :app:lintBrdDebug -PbuildDir=lint
  only:
    - develop
    - /^release.*$/
  artifacts:
    paths:
    - app/lint/reports/

detekt:
  stage: build
  script:
    - rm -rf app/build/reports/detekt
    - ./gradlew --console=plain detekt
  artifacts:
    paths:
      - app/build/reports/detekt
  only:
    - merge_requests

unitTests:
  stage: build
  script:
    - ./gradlew --console=plain test
  artifacts:
    paths:
      - app/build/test-results

assembleDebug:
  stage: build
  script:
    - ./gradlew assembleDebug
  only:
    - develop
    - /^release.*$/
  artifacts:
    paths:
    - app/build/outputs/


Add unit test job to ci config
Add unit test job to ci config
