From 6469e87609965bd57f27bd3fe2a12c60133a0844 Mon Sep 17 00:00:00 2001 From: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com> Date: Tue, 24 Mar 2020 22:42:22 +0100 Subject: [PATCH] Android+CI = FUN --- .cirrus.yml | 3 +-- .travis.yml | 29 ----------------------------- gradle.properties | 3 +++ 3 files changed, 4 insertions(+), 31 deletions(-) delete mode 100644 .travis.yml diff --git a/.cirrus.yml b/.cirrus.yml index 1a0cbf18..0a464f33 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -9,11 +9,10 @@ connected_check_task: image: reactivecircus/android-emulator-23:latest kvm: true cpu: 8 - memory: 24G + memory: 16G create_device_script: echo no | avdmanager create avd --force --name "api-${API_LEVEL}" --abi "${TARGET}/${ARCH}" --package "system-images;android-${API_LEVEL};${TARGET};${ARCH}" start_emulator_background_script: - export QEMU_AUDIO_DRV=none $ANDROID_HOME/emulator/emulator -avd "api-${API_LEVEL}" -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none wait_for_emulator_script: adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 3; done; input keyevent 82' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0f4df905..00000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: android -android: - components: - # The BuildTools version used by your project (make sure it's exactly the same as in the build.gradle) - - build-tools-29.0.3 - # The SDK version used to compile your project - - android-29 - # The SDK version used by the system image - - android-23 - # The system image, to run an emulator during the tests - - sys-img-armeabi-v7a-android-23 -before_script: - # Emulator Management: Create, Start and Wait - - echo no | android create avd --force -n test -t android-23 --abi armeabi-v7a - - export QEMU_AUDIO_DRV=none && emulator -avd test -no-window & - - android-wait-for-emulator - - adb shell input keyevent 82 - # This should be in the `before_script` entry - # Set up Code Climate test reporter - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter - - ./cc-test-reporter before-build -script: - - ./gradlew build connectedCheck jacocoTestReport -after_script: - # Report test coverage to Code Climate - - export JACOCO_SOURCE_PATH=app/src/main/java/ - - ./cc-test-reporter format-coverage ./app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml --input-type jacoco - - ./cc-test-reporter upload-coverage diff --git a/gradle.properties b/gradle.properties index 23339e0d..65f149cb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,3 +19,6 @@ android.useAndroidX=true android.enableJetifier=true # Kotlin code style for this project: "official" or "obsolete": kotlin.code.style=official +org.gradle.daemon=true +org.gradle.caching=true +org.gradle.parallel=true