SWADroid/.drone.yml
Marown 0f9fa51219 Update Drone CI configuration (#407)
Co-authored-by: Amab <juanmi1982@gmail.com>
Reviewed-on: #407
2022-11-01 11:24:52 +01:00

29 lines
906 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