Hello,there!
I am working for an open source project which build on 1.0 config. Now I would like it to migrate it to 2.0 .
I’ve read the docs but I need a push up help in order to complete the migration
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-27-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum “build.gradle” }}-{{ checksum “app/build.gradle” }}
- run:
name: Add SDK 28
command: echo yes | ${ANDROID_HOME}/tools/bin/sdkmanager “platforms;android-28”
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum “build.gradle” }}-{{ checksum “app/build.gradle” }}
- run:
name: lint check
command: ./gradlew lint
- run:
name: spotless check
command: ./gradlew spotlessCheck
- run:
name: Run Tests
command: ./gradlew build
- run:
command:
bash exec/prep-key.sh
- run:
command:
bash exec/apk-gen.sh
- store_artifacts:
path: app/build/reports
destination: reports
- store_artifacts:
path: app/build/outputs
destination: outputs
- store_test_results:
path: app/build/test-results
This is my circleCI for version 1.0
Kindly help