forked from openprivacy/connectivity
Add testing
This commit is contained in:
parent
513c51376b
commit
e16fbe1c76
31
.drone.yml
31
.drone.yml
|
@ -3,6 +3,37 @@ workspace:
|
||||||
path: connectivity
|
path: connectivity
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
fetch:
|
||||||
|
when:
|
||||||
|
repo: openprivacy/connectivity
|
||||||
|
branch: master
|
||||||
|
event: [ push, pull_request ]
|
||||||
|
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
|
||||||
|
- export GO111MODULE=on
|
||||||
|
- go mod vendor
|
||||||
|
- go get -u golang.org/x/lint/golint
|
||||||
|
quality:
|
||||||
|
when:
|
||||||
|
repo: openprivacy/connectivity
|
||||||
|
branch: master
|
||||||
|
event: [ push, pull_request ]
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- go list ./... | xargs go vet
|
||||||
|
- go list ./... | xargs golint -set_exit_status
|
||||||
|
units-tests:
|
||||||
|
when:
|
||||||
|
repo: openprivacy/connectivity
|
||||||
|
branch: master
|
||||||
|
event: [ push, pull_request ]
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- export PATH=$PATH:/go/src/cwtch.im/tapir
|
||||||
|
- sh testing/tests.sh
|
||||||
notify-email:
|
notify-email:
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
host: build.openprivacy.ca
|
host: build.openprivacy.ca
|
||||||
|
|
Loading…
Reference in New Issue