Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Build configuration file for Circle CI
- version: 2
- jobs:
- build-cache:
- working_directory: ~/code
- docker:
- - image: circleci/android:api-28-alpha
- resource_class: medium+
- steps:
- - checkout
- - run:
- # needed because of license agreement
- name: Set $PATH
- command: echo export PATH=$ANDROID_HOME/tools/bin:$PATH
- - run:
- name: Download Dependencies
- command: ./gradlew androidDependencies
- - save_cache:
- paths:
- - ~/.gradle
- key: jars-{{ checksum "build.gradle" }}-{{ checksum "erste-android/build.gradle" }}
- test:
- working_directory: ~/code
- docker:
- - image: circleci/android:api-28-alpha
- resource_class: medium+
- steps:
- - checkout
- - restore_cache:
- key: jars-{{ checksum "build.gradle" }}-{{ checksum "erste-android/build.gradle" }}
- - run:
- name: Run Android Lint
- command: ./gradlew lintUatDebug -PpreDexEnable=false -PdisablePreDex --console=plain
- - run:
- name: Run Kotlin Detekt
- command: ./gradlew detekt -PpreDexEnable=false -PdisablePreDex --console=plain
- - run:
- name: Run Unit Tests
- command: ./gradlew testUatDebug -PpreDexEnable=false -PdisablePreDex --console=plain
- - run:
- name: Run a build
- command: ./gradlew clean assembleUatDebug -PpreDexEnable=false -PdisablePreDex --console=plain
- - store_artifacts:
- path: erste-android/build/reports
- destination: reports
- - store_artifacts:
- path: erste-android/build/outputs
- destination: outputs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement