Add support for Drone CI #403
28
.drone.yml
Normal file
28
.drone.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user