mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-03-27 20:01:30 +01:00
* CircleCI config fixes * Implicit deeplinking via navController navigate * Removed jacoco.exec files. Closes # 32
92 lines
3.4 KiB
YAML
92 lines
3.4 KiB
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
working_directory: ~/code
|
|
docker:
|
|
- image: circleci/android:api-28
|
|
environment:
|
|
JVM_OPTS: -Xmx3200m
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
|
# - run:
|
|
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
|
|
# command: sudo chmod +x ./gradlew
|
|
- run:
|
|
name: Setup
|
|
command: |
|
|
gem install bundler
|
|
bundle install
|
|
mkdir ~/code/reports
|
|
|
|
# Detekt
|
|
- run:
|
|
name: Detekt
|
|
command: fastlane detekt
|
|
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
|
|
path: reports/detekt
|
|
|
|
# Tests
|
|
## App
|
|
- run:
|
|
name: Test App
|
|
command: |
|
|
fastlane test_app
|
|
./gradlew app:jacocoTestReport
|
|
bash <(curl -s https://codecov.io/bash)
|
|
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
|
|
path: app/build/reports/tests
|
|
- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
|
|
path: app/build/test-results
|
|
|
|
## Core
|
|
- run:
|
|
name: Test Core
|
|
command: |
|
|
fastlane test_core
|
|
./gradlew core:jacocoTestReport
|
|
bash <(curl -s https://codecov.io/bash)
|
|
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
|
|
path: core/build/reports/tests
|
|
- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
|
|
path: core/build/test-results
|
|
|
|
## Launches
|
|
- run:
|
|
name: Test Launches
|
|
command: |
|
|
fastlane test_launches
|
|
./gradlew features:launches:jacocoTestReport
|
|
bash <(curl -s https://codecov.io/bash)
|
|
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
|
|
path: features/launches/build/reports/tests
|
|
- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
|
|
path: features/launches/build/test-results
|
|
|
|
## Detail
|
|
- run:
|
|
name: Test Detail
|
|
command: |
|
|
fastlane test_detail
|
|
./gradlew features:detail:jacocoTestReport
|
|
bash <(curl -s https://codecov.io/bash)
|
|
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
|
|
path: features/detail/build/reports/tests
|
|
- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
|
|
path: features/detail/build/test-results
|
|
|
|
## Repository
|
|
- run:
|
|
name: Test Repository
|
|
command: |
|
|
fastlane test_repository
|
|
./gradlew repository:jacocoTestReport
|
|
bash <(curl -s https://codecov.io/bash)
|
|
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
|
|
path: repository/build/reports/tests
|
|
- store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
|
|
path: repository/build/test-results
|
|
|
|
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples
|