ui/.drone.yml

74 lines
2.4 KiB
YAML
Raw Normal View History

2019-02-20 20:36:16 +00:00
workspace:
2019-02-25 19:47:48 +00:00
base: /media/sf_GOPATH1/src/cwtch.im
path: ui
2019-02-20 20:36:16 +00:00
pipeline:
2019-02-20 21:02:07 +00:00
build-linux:
2019-02-22 00:25:59 +00:00
mem_limit: 3G
2019-02-20 20:59:37 +00:00
image: therecipe/qt:linux
2019-02-27 20:24:39 +00:00
secrets: [buildfiles_key]
2019-02-20 21:39:54 +00:00
environment:
- QT_DIR=/opt/Qt
- QT_DOCKER='true'
- QT_API=5.12.0
2019-02-20 20:59:37 +00:00
commands:
2019-02-22 21:49:59 +00:00
- export GOPATH=$GOPATH:/media/sf_GOPATH1/
- export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
2019-02-27 20:24:39 +00:00
- apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git openssh-client
2019-02-24 03:52:37 +00:00
- go get -d
2019-02-20 20:36:16 +00:00
- qtdeploy build linux
2019-02-27 20:24:39 +00:00
- export FILENAME=cwtch-linux-`date +%G-%m-%d-%H-%M`.tar.gz
- tar -czf deploy/$FILENAME deploy/linux
2019-02-27 21:27:06 +00:00
- echo $BUILDFILES_KEY > /home/user/id_rsab64
- base64 -d /home/user/id_rsab64 > /home/user/id_rsa
2019-02-27 20:24:39 +00:00
- chmod 400 /home/user/id_rsa
2019-02-27 20:52:33 +00:00
- scp -o StrictHostKeyChecking=no -i /home/user/id_rsa deploy/$FILENAME buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/$FILENAME
2019-02-26 23:25:33 +00:00
# build-android:
# mem_limit: 3G
# image: therecipe/qt:android
# environment:
# - QT_DIR=/opt/Qt
# - QT_DOCKER='true'
# - QT_API=5.12.0
# - ANDROID_NDK_DIR=/home/user/android-ndk-r18b
# - ANDROID_SDK_DIR=/home/user/android-sdk-linux
# commands:
# - export GOPATH=$GOPATH:/media/sf_GOPATH1/
# - export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
# - apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git zip
# - find -iname 'moc*' | xargs rm
# - find -iname 'rcc*' | xargs rm
# - go get -d
# - qtdeploy build android
# - zip -r deploy/cwtch-android-`date +%G-%m-%d-%H-%M`.zip deploy/windows
2019-02-27 20:24:39 +00:00
#deploy-buildfiles:
# image: appleboy/drone-scp:v1.3.0
# settings:
# host: openprivacy.ca
# username: buildfiles
# key:
# from_secret: buildfiles_key
# source:
# - deploy/cwtch-*
# target:
# - /home/buildfiles/buildfiles
# when:
# branch: master
# event: push
# status: [ success ]
2019-02-20 20:36:16 +00:00
notify-email:
image: drillster/drone-email
host: build.openprivacy.ca
port: 25
skip_verify: true
from: drone@openprivacy.ca
when:
status: [ failure ]
notify-gogs:
image: openpriv/drone-gogs
when:
event: pull_request
status: [ success, changed, failure ]
secrets: [gogs_account_token]
gogs_url: https://git.openprivacy.ca