Skip to content

Commit

Permalink
Add CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
tony19 committed Feb 5, 2018
1 parent 6b07d87 commit 8747d8b
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Configuration for CircleCI
# https://circleci.com/gh/tony19/apktool-lib
version: 2.0

jobs:
build:
branches:
ignore: gh-pages
working_directory: ~/code
docker:
- image: circleci/android:api-26-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "apktool-lib/build.gradle" }}
# - run:
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
# command: sudo chmod +x ./gradlew
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "apktool-lib/build.gradle" }}
- run:
name: Run Tests
command: ./gradlew check assembleDebug assembleRelease --parallel
- store_artifacts:
path: apktool-lib/build/reports
destination: reports
- store_artifacts:
path: apktool-lib/build/outputs
destination: outputs
- store_test_results:
path: apktool-lib/build/test-results
- run:
name: Deploy snapshot
command: scripts/deploysnapshot.sh

0 comments on commit 8747d8b

Please sign in to comment.