Add notify and update drone yml
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
1730dc071d
commit
26060115bc
39
.drone.yml
39
.drone.yml
@ -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
|
||||||
|
settings:
|
||||||
file: com.iamthefij.otbeta/build/outputs/apk/com.iamthefij.otbeta-debug.apk
|
file: com.iamthefij.otbeta/build/outputs/apk/com.iamthefij.otbeta-debug.apk
|
||||||
destination: https://cloud.iamthefij.com/remote.php/dav/files/iamthefij/Android/Apks/
|
destination: https://cloud.iamthefij.com/remote.php/dav/files/iamthefij/Android/Apks/
|
||||||
secrets:
|
username:
|
||||||
- source: WEBDAV_USER
|
from_secret: WEBDAV_USER
|
||||||
target: PLUGIN_USERNAME
|
password:
|
||||||
- source: WEBDAV_PASSWORD
|
from_secret: WEBDAV_PASSWORD
|
||||||
target: PLUGIN_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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user