我正在寻找带有android的circle ci 2.0(服务器)上的(.apk)工件文件,所以任何人都对config.yml文件有任何想法。我已经分享了我的配置文件。
'
答案 0 :(得分:3)
您必须添加Gradle构建作业,您的.YML将变为:
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-25-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results
- run:
name: Run Build
command: ./gradlew build
- store_artifacts:
path: app/build/outputs/apk/debug/
destination: artifact-file
您必须检查CircleCi构建仪表板并查找工件。