This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
571ef1c
commit 67ac4e6
Showing
1 changed file
with
26 additions
and
34 deletions.
There are no files selected for viewing
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
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 |