2022-07-23 20:28:06 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-09-14 10:32:00 +00:00
|
|
|
name: test
|
2022-07-23 20:28:06 +00:00
|
|
|
|
|
|
|
steps:
|
2022-12-13 19:53:23 +00:00
|
|
|
- name: BuildAndTest
|
2022-07-23 20:39:48 +00:00
|
|
|
image: mingc/android-build-box:latest
|
2022-07-23 20:28:06 +00:00
|
|
|
commands:
|
2022-10-30 20:38:04 +00:00
|
|
|
- echo "---------------------------------------------------------"
|
|
|
|
- echo "Configure gradle..."
|
2022-11-14 12:10:17 +00:00
|
|
|
- mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=true\npushCache=false\nsystemProp.org.gradle.internal.http.connectionTimeout=180000\nsystemProp.org.gradle.internal.http.socketTimeout=180000" >> ~/.gradle/gradle.properties
|
2022-09-14 10:32:00 +00:00
|
|
|
- echo "---------------------------------------------------------"
|
|
|
|
- echo "Building..."
|
2022-12-12 20:11:26 +00:00
|
|
|
- ./gradlew build -x test
|
2022-09-14 10:32:00 +00:00
|
|
|
- echo "---------------------------------------------------------"
|
2023-03-16 19:57:24 +00:00
|
|
|
- cat androidApp/build/outputs/mapping/githubConfigRelease/mapping.txt
|
2022-07-23 20:28:06 +00:00
|
|
|
environment:
|
2022-12-26 10:28:04 +00:00
|
|
|
TZ: Europe/Paris
|
2023-03-16 19:57:24 +00:00
|
|
|
- name: notify
|
|
|
|
image: drillster/drone-email
|
2022-12-13 19:53:23 +00:00
|
|
|
settings:
|
2023-03-16 19:57:24 +00:00
|
|
|
host:
|
|
|
|
from_secret: smtpHOST
|
|
|
|
port:
|
|
|
|
from_secret: smtpPORT
|
|
|
|
username:
|
|
|
|
from_secret: smtpUSERNAME
|
|
|
|
password:
|
|
|
|
from_secret: smtpPASSWORD
|
|
|
|
from:
|
|
|
|
from_secret: smtpFROM
|
|
|
|
subject: Mapping file
|
|
|
|
recipients:
|
|
|
|
from_secret: smtpTO
|
|
|
|
recipients_only: true
|
|
|
|
skip_verify: true
|
|
|
|
attachment: androidApp/build/outputs/mapping/githubConfigRelease/mapping.txt
|
2022-09-14 10:32:00 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
2023-03-16 19:57:24 +00:00
|
|
|
- pull_request
|