Skip to content

Commit

Permalink
Update Circle CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
minibugdev committed Jan 3, 2020
1 parent 71f13d8 commit 4f18676
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
12 changes: 8 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@ version: 2
jobs:
build:
docker:
- image: circleci/android:api-26-alpha
- image: circleci/android:api-29
environment:
- JVM_OPTS: -Xmx3200m
- TERM: dumb
- JVM_OPTS: -Xmx1024m
- _JAVA_OPTIONS: "-Xmx1024m"
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "library/build.gradle" }}
key: jars-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "build.gradle" }}-{{ checksum "library/build.gradle" }}
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "library/build.gradle" }}
- ~/.m2
key: jars-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "build.gradle" }}-{{ checksum "library/build.gradle" }}
- run:
name: Run Tests
command: ./gradlew :library:test
Expand Down
6 changes: 3 additions & 3 deletions demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28
buildToolsVersion "29.0.0"
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.minibugdev"
minSdkVersion 15
targetSdkVersion 28
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
Expand Down
3 changes: 0 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ dependencies {

testImplementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testImplementation "io.mockk:mockk-android:$mockk_version"
testImplementation "androidx.annotation:annotation:$android_annotation_version"
testImplementation "androidx.test:runner:$test_runner_version"
testImplementation "org.robolectric:robolectric:$robolectric_version"
}

Expand Down

0 comments on commit 4f18676

Please sign in to comment.