Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8aaab5f1 authored by Gokul Swaminathan's avatar Gokul Swaminathan
Browse files

Update travis

parent c0158b80
Loading
Loading
Loading
Loading
+30 −14
Original line number Diff line number Diff line
language: android
jdk: oraclejdk8
sudo: required
after_failure: "cat $TRAVIS_BUILD_DIR/app/build/outputs/lint-results-debug.xml"

notifications:
  slack: pdfviewerplus:ODw20YfhNtVZkbdA4K3mVFnS

before_install:
 - chmod +x gradlew
env:
  global:
  - ANDROID_API_LEVEL=30
  - ANDROID_BUILD_TOOLS_VERSION=29.0.2
  - ANDROID_ABI=armeabi-v7a

android:
  components:
    - tools
    - platform-tools
    - tools
    - build-tools-29.0.2
    - android-21
    - android-29
    - android-30
    - sys-img-armeabi-v7a-android-30
    - extra-android-m2repository
  licenses:
    - 'android-sdk-preview-license-52d11cd2'
    - 'android-sdk-license-.+'
    - 'google-gdk-license-.+'

before_install:
  - touch $HOME/.android/repositories.cfg
  - yes | sdkmanager "platforms;android-30"
  - yes | sdkmanager "build-tools;29.0.2"

before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
  directories:
  - $HOME/.gradle/caches/
  - $HOME/.gradle/wrapper/
  - $HOME/.android/build-cache

before_script:
  # Create and start emulator
  - echo no | android create avd --force -n test -t android-30 --abi armeabi-v7a
  - emulator -avd test -no-skin -no-audio -no-window &
  - android-wait-for-emulator
  - adb shell input keyevent 82 &
  - chmod +x gradlew

script: ./gradlew connectedAndroidTest
script:
  - ./gradlew clean build
  - ./gradlew test