forked from cwtch.im/cwtch
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
workspace:
|
|
base: /go
|
|
path: src/cwtch.im/cwtch
|
|
|
|
pipeline:
|
|
fetch:
|
|
image: golang
|
|
commands:
|
|
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/bin/tor
|
|
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/torrc
|
|
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/gogs-notify.sh
|
|
- chmod a+x tor
|
|
- go list ./... | xargs go get
|
|
- go get -u github.com/golang/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/cwtch
|
|
- sh testing/tests.sh
|
|
integ-test:
|
|
image: golang
|
|
commands:
|
|
- ./tor -f ./torrc
|
|
- sleep 15
|
|
- go test -v cwtch.im/cwtch/testing
|
|
notify-email:
|
|
image: drillster/drone-email
|
|
host: build.openprivacy.ca
|
|
port: 25
|
|
skip_verify: true
|
|
from: drone@openprivacy.ca
|
|
when:
|
|
status: [ success, changed, failure ]
|
|
notify-gogs:
|
|
image: golang
|
|
when:
|
|
event: pull-request
|
|
secrets: [BUILDBOT]
|
|
commands:
|
|
- echo "Notifying"
|
|
- sh gogs-notify.sh |