123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- workspace:
- base: /go
- path: src/cwtch.im/cwtch
-
- pipeline:
- fetch:
- image: golang
- when:
- repo: cwtch.im/cwtch
- branch: master
- event: [ push, pull_request ]
- 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
- - export GO111MODULE=on
- - go mod vendor
- - go get -u golang.org/x/lint/golint
- quality:
- image: golang
- when:
- repo: cwtch.im/cwtch
- branch: master
- event: [ push, pull_request ]
- commands:
- - go list ./... | xargs go vet
- - go list ./... | xargs golint -set_exit_status
- units-tests:
- image: golang
- when:
- repo: cwtch.im/cwtch
- branch: master
- event: [ push, pull_request ]
- commands:
- - export PATH=$PATH:/go/src/cwtch.im/cwtch
- - sh testing/tests.sh
- integ-test:
- image: golang
- when:
- repo: cwtch.im/cwtch
- branch: master
- event: [ push, pull_request ]
- 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:
- repo: cwtch.im/cwtch
- branch: master
- event: [ push, pull_request ]
- status: [ failure ]
- notify-gogs:
- image: openpriv/drone-gogs
- when:
- repo: cwtch.im/cwtch
- branch: master
- event: pull_request
- status: [ success, changed, failure ]
- secrets: [gogs_account_token]
- gogs_url: https://git.openprivacy.ca
|