Add support for Drone CI (#403)
* Add Drone config
* Fix indentation issues
* Add test step
* Replace test step with build step
* Use Gradle wrapper
* Restore test step
* Refactor Gradle steps
* Add Fetch step
* Use androidsdk/android-31 image
* Parallelize steps
* Revert parallelize steps
* Update code-analysis step for using sonar-scanner.properties file
* Add sonar-scanner.properties
* Add sonar-project.properties
* Remove sonar-project.properties
* Add sonar.projectKey property
* Remove sonar.projectKey property
* Add inclusions in code-analisys step
* Update inclusions path
* Remove sonar-scanner.properties
* Update inclusions path
* Replace code-analysis image
* Replace code-analysis image
* Disable code-analysis step
* Add integration tests step to Drone CI (#397)
Reviewed-on: http://gitea:3000/juanmi/SWADroid/pulls/397
* Revert "Add integration tests step to Drone CI (#397)"
This reverts commit 88897d3350
.
* Refactor steps & fix ITs execution
Co-authored-by: juanmi <juanmi@noreply.gitea>
This commit is contained in:
parent
813ebf945a
commit
284992a9f1
|
@ -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