Last active
December 10, 2017 20:11
-
-
Save canuludag/3b46fa29d65a43b95489c5e3d99c4b3b to your computer and use it in GitHub Desktop.
Boilerplate CircleCI config.yml File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Java Gradle CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-java/ for more details | |
# | |
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: Download Dependencies | |
command: ./gradlew androidDependencies | |
- save_cache: | |
paths: | |
- ~/.gradle | |
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} | |
- run: | |
name: Run Tests | |
command: ./gradlew test | |
- store_test_results: | |
path: app/build/test-results | |
destination: test-results/ | |
- run: | |
name: Build Debug | |
command: ./gradlew clean assembleDebug | |
- store_artifacts: | |
path: app/build/reports | |
destination: reports | |
path: app/build/outputs/apk/ | |
destination: apks/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment