SWADroid/.drone.yml
Marown f18a03c6cb Run Drone CI pipeline on pull requests only (#418)
## What changes were proposed in this pull request?

Run Drone CI pipeline on pull requests only.

## How was this patch tested?

Drone CI pipeline.

Co-authored-by: Amab <juanmi1982@gmail.com>
Reviewed-on: #418
2023-06-03 10:57:43 +02:00

33 lines
944 B
YAML

kind: pipeline
name: default
steps:
- name: fetch-tags
image: drone/git:latest
commands:
- git fetch --tags
- name: build & test
image: git.cuernodehipnos.es/marown/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
trigger:
event:
- pull_request