2021-03-17 19:35:55 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: fetch
|
|
|
|
image: golang
|
|
|
|
when:
|
|
|
|
repo: flutter/libcwtch-go
|
|
|
|
branch: trunk
|
|
|
|
event: [ push, pull_request ]
|
2021-03-17 19:36:03 +00:00
|
|
|
commands:
|
|
|
|
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor
|
|
|
|
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc
|
|
|
|
- chmod a+x tor
|
|
|
|
- go get -u golang.org/x/lint/golint
|
|
|
|
- go mod vendor
|
|
|
|
- name: quality
|
|
|
|
image: golang
|
|
|
|
when:
|
|
|
|
repo: flutter/libcwtch-go
|
|
|
|
branch: trunk
|
|
|
|
event: [ push, pull_request ]
|
|
|
|
commands:
|
|
|
|
- go list ./... | xargs go vet
|
|
|
|
- go list ./... | xargs golint -set_exit_status
|
|
|
|
- name: buildLinux
|
|
|
|
image: openpriv/android-go-mobile:2021
|
|
|
|
when:
|
|
|
|
repo: flutter/libcwtch-go
|
|
|
|
branch: trunk
|
|
|
|
event: [ push, pull_request ]
|
2021-03-17 19:35:55 +00:00
|
|
|
commands:
|
2021-03-17 19:36:03 +00:00
|
|
|
- make linux
|
|
|
|
- name: build-androiud
|
|
|
|
image: openpriv/android-go-mobile:2021
|
|
|
|
when:
|
|
|
|
repo: flutter/libcwtch-go
|
|
|
|
branch: trunk
|
|
|
|
event: [ push, pull_request ]
|
|
|
|
commands:
|
|
|
|
- make android
|
|
|
|
- name: notify-email
|
|
|
|
image: drillster/drone-email
|
|
|
|
host: build.openprivacy.ca
|
|
|
|
port: 25
|
|
|
|
skip_verify: true
|
|
|
|
from: drone@openprivacy.ca
|
|
|
|
when:
|
|
|
|
repo: flutter/libcwtch-go
|
|
|
|
branch: trunk
|
|
|
|
event: [ push, pull_request ]
|
|
|
|
status: [ failure ]
|
|
|
|
- name: notify-gogs
|
|
|
|
image: openpriv/drone-gogs
|
|
|
|
when:
|
|
|
|
repo: flutter/libcwtch-go
|
|
|
|
branch: trunk
|
|
|
|
event: pull_request
|
|
|
|
status: [ success, changed, failure ]
|
|
|
|
secrets: [gogs_account_token]
|
|
|
|
gogs_url: https://git.openprivacy.ca
|