2018-06-30 04:38:08 +00:00
|
|
|
workspace:
|
|
|
|
base: /go
|
|
|
|
path: src/cwtch.im/cwtch
|
|
|
|
|
|
|
|
pipeline:
|
2018-06-30 14:12:54 +00:00
|
|
|
fetch:
|
2018-06-30 04:38:08 +00:00
|
|
|
image: golang
|
|
|
|
commands:
|
2018-10-10 22:41:47 +00:00
|
|
|
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor
|
|
|
|
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc
|
2018-06-30 14:12:54 +00:00
|
|
|
- chmod a+x tor
|
2018-06-30 04:38:08 +00:00
|
|
|
- go list ./... | xargs go get
|
2018-10-15 01:16:37 +00:00
|
|
|
- go get -u golang.org/x/lint/golint
|
2018-06-30 14:12:54 +00:00
|
|
|
quality:
|
|
|
|
image: golang
|
|
|
|
commands:
|
2018-06-30 04:38:08 +00:00
|
|
|
- go list ./... | xargs go vet
|
|
|
|
- go list ./... | xargs golint -set_exit_status
|
2018-06-30 14:12:54 +00:00
|
|
|
units-tests:
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- export PATH=$PATH:/go/src/cwtch.im/cwtch
|
2018-06-30 05:55:22 +00:00
|
|
|
- sh testing/tests.sh
|
2018-06-30 14:12:54 +00:00
|
|
|
integ-test:
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- ./tor -f ./torrc
|
2018-07-02 16:09:49 +00:00
|
|
|
- sleep 15
|
2018-06-30 14:12:54 +00:00
|
|
|
- go test -v cwtch.im/cwtch/testing
|
|
|
|
notify-email:
|
|
|
|
image: drillster/drone-email
|
|
|
|
host: build.openprivacy.ca
|
|
|
|
port: 25
|
|
|
|
skip_verify: true
|
2018-07-02 15:36:05 +00:00
|
|
|
from: drone@openprivacy.ca
|
2018-06-30 14:12:54 +00:00
|
|
|
when:
|
2018-11-21 23:54:03 +00:00
|
|
|
status: [ failure ]
|
2018-06-30 14:12:54 +00:00
|
|
|
notify-gogs:
|
2018-07-10 20:42:47 +00:00
|
|
|
image: openpriv/drone-gogs
|
2018-07-02 16:09:49 +00:00
|
|
|
when:
|
2018-07-04 16:40:28 +00:00
|
|
|
event: pull_request
|
2018-08-05 17:05:40 +00:00
|
|
|
status: [ success, changed, failure ]
|
2018-07-08 01:14:42 +00:00
|
|
|
secrets: [gogs_account_token]
|
|
|
|
gogs_url: https://git.openprivacy.ca
|