2019-08-07 20:08:02 +00:00
|
|
|
workspace:
|
|
|
|
base: /go
|
|
|
|
path: src/cwtch.im/tapir
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
fetch:
|
|
|
|
image: golang
|
|
|
|
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
|
2019-08-13 19:23:12 +00:00
|
|
|
- export GO111MODULE=on
|
|
|
|
- go mod vendor
|
2019-08-07 20:08:02 +00:00
|
|
|
- go get -u golang.org/x/lint/golint
|
|
|
|
quality:
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go list ./... | xargs go vet
|
|
|
|
- go list ./... | xargs golint -set_exit_status
|
|
|
|
units-tests:
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- export PATH=$PATH:/go/src/cwtch.im/tapir
|
|
|
|
- sh testing/tests.sh
|
2019-08-08 18:11:31 +00:00
|
|
|
integ-test:
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- ./tor -f ./torrc
|
|
|
|
- sleep 15
|
|
|
|
- go test -v cwtch.im/tapir/testing
|
2019-08-07 20:08:02 +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
|