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: workspace:
base: /src base: /src
path: . path: .
pipeline: steps:
build:
- name: build
image: openjdk:8-jdk image: openjdk:8-jdk
environment: environment:
- ANDROID_COMPILE_SDK=25 ANDROID_COMPILE_SDK: 25
- ANDROID_BUILD_TOOLS=25.0.2 ANDROID_BUILD_TOOLS: 25.0.2
- ANDROID_SDK_TOOLS=3859397 ANDROID_SDK_TOOLS: 3859397
commands: commands:
- chmod +x ./gradlew - chmod +x ./gradlew
- export ANDROID_HOME=/src/android-sdk-linux - export ANDROID_HOME=/src/android-sdk-linux
@ -32,12 +36,25 @@ pipeline:
- ./gradlew test - ./gradlew test
- ./gradlew build - ./gradlew build
upload_debug: - name: upload
image: vividboarder/drone-webdav image: vividboarder/drone-webdav
file: com.iamthefij.otbeta/build/outputs/apk/com.iamthefij.otbeta-debug.apk settings:
destination: https://cloud.iamthefij.com/remote.php/dav/files/iamthefij/Android/Apks/ file: com.iamthefij.otbeta/build/outputs/apk/com.iamthefij.otbeta-debug.apk
secrets: destination: https://cloud.iamthefij.com/remote.php/dav/files/iamthefij/Android/Apks/
- source: WEBDAV_USER username:
target: PLUGIN_USERNAME from_secret: WEBDAV_USER
- source: WEBDAV_PASSWORD password:
target: PLUGIN_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]