Skip to content

Instantly share code, notes, and snippets.

@sanogueralorenzo
Created March 28, 2018 17:27
Show Gist options
  • Save sanogueralorenzo/434b549cb60114930084aef51da5ef95 to your computer and use it in GitHub Desktop.
Save sanogueralorenzo/434b549cb60114930084aef51da5ef95 to your computer and use it in GitHub Desktop.
# Android CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-android/ for more details
#
version: 2
jobs:
build:
working_directory: ~/Android-Kotlin-Clean-Architecture
docker:
- image: circleci/android:api-25-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "presentation/build.gradle" }}
# - run:
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
# command: sudo chmod +x ./gradlew
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "presentation/build.gradle" }}
- run:
name: Run Presentation Module Unit Tests
command: ./gradlew :presentation:testDebugUnitTest
- store_artifacts:
path: presentation/build/reports
- store_test_results:
path: presentation/build/test-results
- run:
name: Run Domain Module Unit Tests
command: ./gradlew :domain:test
- store_artifacts:
path: domain/build/reports
- store_test_results:
path: domain/build/test-results
- run:
name: Run Data Module Unit Tests
command: ./gradlew :data:testDebugUnitTest
- store_artifacts:
path: data/build/reports
- store_test_results:
path: data/build/test-results
- run:
name: Run Lint Test
command: ./gradlew lint
- store_artifacts:
path: presentation/build/reports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment