Add support for Drone CI #403

Merged
Amab merged 28 commits from feat/drone into master 2022-08-13 08:55:18 +02:00

28
.drone.yml Normal file
View File

@ -0,0 +1,28 @@
kind: pipeline
name: default
steps:
- name: fetch-tags
image: drone/git:latest
commands:
- git fetch --tags
- name: build & test
image: amab/android-sdk-docker:latest
privileged: true
commands:
# Create and run emulator
- echo "no" | avdmanager --verbose create avd --force --name "generic_33" --package "system-images;android-33;google_apis;x86_64" --tag "google_apis" --abi "x86_64"
- emulator -avd "generic_33" -no-window -no-audio -no-boot-anim -netdelay none -no-snapshot -wipe-data -partition-size 1024 &
# Wait for emulator to be ready
- android-wait-for-emulator.sh
# Run tests
- ./gradlew connectedCheck -i
#- name: code-analysis
# image: drone-plugins/sonarqube-scanner:latest
# settings:
# sonar_host:
# from_secret: sonar_host
# sonar_token:
# from_secret: sonar_token