This repository has been archived on 2020-04-20. You can view files and clone it, but cannot push or open issues or pull requests.
2018-07-02 18:09:12 +00:00
|
|
|
workspace:
|
|
|
|
base: /go
|
|
|
|
path: src/openprivacy/libricochet-go
|
|
|
|
|
|
|
|
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
|
|
|
|
#-set_exit_status too many lint fails for :(
|
|
|
|
- go list ./... | xargs golint
|
|
|
|
units-tests:
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- sh testing/tests.sh
|
|
|
|
integ-test:
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- ./tor -f ./torrc
|
|
|
|
- sleep 15
|
|
|
|
- go test -v openprivacy/libricochet-go/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:
|
2018-07-05 21:47:37 +00:00
|
|
|
event: pull_request
|
2018-07-02 18:09:12 +00:00
|
|
|
secrets: [BUILDBOT]
|
|
|
|
commands:
|
|
|
|
- echo "Notifying"
|
2018-07-05 21:47:37 +00:00
|
|
|
- sh gogs-notify.sh
|