drone revert to working
This commit is contained in:
parent
956e7a4413
commit
208a18da7f
27
.drone.yml
27
.drone.yml
|
@ -3,28 +3,8 @@ workspace:
|
||||||
path: ui
|
path: ui
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
fetch:
|
|
||||||
image: therecipe/qt:linux_static
|
|
||||||
when:
|
|
||||||
repo: cwtch.im/ui
|
|
||||||
branch: master
|
|
||||||
event: [ push, pull_request ]
|
|
||||||
environment:
|
|
||||||
- QT_DIR=/opt/Qt
|
|
||||||
- QT_DOCKER='true'
|
|
||||||
- QT_API=5.13.0
|
|
||||||
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 openssh-client
|
|
||||||
- export GO111MODULE=on
|
|
||||||
- go mod download
|
|
||||||
- go mod vendor
|
|
||||||
- rm -rf vendor/github.com/therecipe
|
|
||||||
- export GO111MODULE=off
|
|
||||||
- go clean -cache -modcache
|
|
||||||
build-linux:
|
build-linux:
|
||||||
mem_limit: 4G
|
mem_limit: 3G
|
||||||
image: therecipe/qt:linux_static
|
image: therecipe/qt:linux_static
|
||||||
when:
|
when:
|
||||||
repo: cwtch.im/ui
|
repo: cwtch.im/ui
|
||||||
|
@ -38,6 +18,7 @@ pipeline:
|
||||||
- export GOPATH=$GOPATH:/media/sf_GOPATH1/
|
- export GOPATH=$GOPATH:/media/sf_GOPATH1/
|
||||||
- export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
|
- 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 openssh-client
|
- apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git openssh-client
|
||||||
|
- go get -d
|
||||||
- $QT_DIR/$QT_API/gcc_64/bin/lrelease ui.pro
|
- $QT_DIR/$QT_API/gcc_64/bin/lrelease ui.pro
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
- export VERSION=`git describe --tags`
|
- export VERSION=`git describe --tags`
|
||||||
|
@ -51,7 +32,7 @@ pipeline:
|
||||||
- sha256sum $FILENAME > $FILENAME.sha256
|
- sha256sum $FILENAME > $FILENAME.sha256
|
||||||
- rm -r cwtch
|
- rm -r cwtch
|
||||||
build-android:
|
build-android:
|
||||||
mem_limit: 4G
|
mem_limit: 3G
|
||||||
image: therecipe/qt:android
|
image: therecipe/qt:android
|
||||||
when:
|
when:
|
||||||
repo: cwtch.im/ui
|
repo: cwtch.im/ui
|
||||||
|
@ -78,7 +59,7 @@ pipeline:
|
||||||
- cp android/build-debug.apk $FILENAME
|
- cp android/build-debug.apk $FILENAME
|
||||||
- sha256sum $FILENAME > $FILENAME.sha256
|
- sha256sum $FILENAME > $FILENAME.sha256
|
||||||
build-windows:
|
build-windows:
|
||||||
mem_limit: 4G
|
mem_limit: 3G
|
||||||
image: therecipe/qt:windows_64_static
|
image: therecipe/qt:windows_64_static
|
||||||
when:
|
when:
|
||||||
repo: cwtch.im/ui
|
repo: cwtch.im/ui
|
||||||
|
|
Reference in New Issue