Skip to content

Instantly share code, notes, and snippets.

@canuludag
Last active December 10, 2017 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save canuludag/3b46fa29d65a43b95489c5e3d99c4b3b to your computer and use it in GitHub Desktop.
Save canuludag/3b46fa29d65a43b95489c5e3d99c4b3b to your computer and use it in GitHub Desktop.
Boilerplate CircleCI config.yml File
# 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