Add notify and update drone yml
continuous-integration/drone/push Build is failing Details

This commit is contained in:
IamTheFij 2019-12-19 17:39:10 -08:00
parent 1730dc071d
commit 26060115bc
1 changed files with 30 additions and 13 deletions

View File

@ -1,15 +1,19 @@
---
kind: pipeline
name: build
workspace:
base: /src
path: .
pipeline:
build:
steps:
- name: build
image: openjdk:8-jdk
environment:
- ANDROID_COMPILE_SDK=25
- ANDROID_BUILD_TOOLS=25.0.2
- ANDROID_SDK_TOOLS=3859397
ANDROID_COMPILE_SDK: 25
ANDROID_BUILD_TOOLS: 25.0.2
ANDROID_SDK_TOOLS: 3859397
commands:
- chmod +x ./gradlew
- export ANDROID_HOME=/src/android-sdk-linux
@ -32,12 +36,25 @@ pipeline:
- ./gradlew test
- ./gradlew build
upload_debug:
- name: upload
image: vividboarder/drone-webdav
file: com.iamthefij.otbeta/build/outputs/apk/com.iamthefij.otbeta-debug.apk
destination: https://cloud.iamthefij.com/remote.php/dav/files/iamthefij/Android/Apks/
secrets:
- source: WEBDAV_USER
target: PLUGIN_USERNAME
- source: WEBDAV_PASSWORD
target: PLUGIN_PASSWORD
settings:
file: com.iamthefij.otbeta/build/outputs/apk/com.iamthefij.otbeta-debug.apk
destination: https://cloud.iamthefij.com/remote.php/dav/files/iamthefij/Android/Apks/
username:
from_secret: WEBDAV_USER
password:
from_secret: WEBDAV_PASSWORD
- name: notify
image: drillster/drone-email
settings:
host:
from_secret: smtp_host
username:
from_secret: smtp_user
password:
from_secret: smtp_pass
from: drone@iamthefij.com
when:
status: [changed, failure]