Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danimahardhika authored Oct 31, 2017
1 parent 571ef1c commit 67ac4e6
Showing 1 changed file with 26 additions and 34 deletions.
60 changes: 26 additions & 34 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,27 @@
#
# Build configuration for Circle CI
#

general:
artifacts:
- /home/ubuntu/AndroidApp/app/build/outputs/apk/

machine:
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-25-alpha
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
java:
version: oraclejdk8

dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,android-26
- echo y | android update sdk --no-ui --all --filter build-tools-26.0.2
- echo y | android update sdk --no-ui --all --filter android-26
- echo y | android update sdk --no-ui --all --filter tools
- echo y | android update sdk --no-ui --all --filter extra-android-m2repository
- echo y | android update sdk --no-ui --all --filter extra-android-support
- echo y | android update sdk --no-ui --all --filter extra-google-m2repository
override:
- chmod +x gradlew
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies

test:
override:
- (./gradlew assemble):
timeout: 360
# copy the build outputs to artifacts
- cp -r app/build/outputs $CIRCLE_ARTIFACTS
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 lint test
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results

0 comments on commit 67ac4e6

Please sign in to comment.