forked from cwtch.im/cwtch
getting tor support into drone and running integ test
This commit is contained in:
parent
f1405680f6
commit
0c0760f6f0
31
.drone.yml
31
.drone.yml
|
@ -3,20 +3,41 @@ workspace:
|
||||||
path: src/cwtch.im/cwtch
|
path: src/cwtch.im/cwtch
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
fetch:
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
|
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/bin/tor
|
||||||
|
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/torrc
|
||||||
|
- chmod a+x tor
|
||||||
- go list ./... | xargs go get
|
- go list ./... | xargs go get
|
||||||
- go get -u github.com/golang/lint/golint
|
- go get -u github.com/golang/lint/golint
|
||||||
|
quality:
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
- go list ./... | xargs go vet
|
- go list ./... | xargs go vet
|
||||||
- go list ./... | xargs golint -set_exit_status
|
- go list ./... | xargs golint -set_exit_status
|
||||||
|
units-tests:
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- export PATH=$PATH:/go/src/cwtch.im/cwtch
|
||||||
- sh testing/tests.sh
|
- sh testing/tests.sh
|
||||||
|
integ-test:
|
||||||
pipeline:
|
image: golang
|
||||||
notify:
|
commands:
|
||||||
|
- ./tor -f ./torrc
|
||||||
|
- sleep 10
|
||||||
|
- go test -v cwtch.im/cwtch/testing
|
||||||
|
notify-email:
|
||||||
|
image: drillster/drone-email
|
||||||
|
host: build.openprivacy.ca
|
||||||
|
port: 25
|
||||||
|
skip_verify: true
|
||||||
|
from: dan@openprivacy.ca
|
||||||
|
when:
|
||||||
|
status: [ success, changed, failure ]
|
||||||
|
notify-gogs:
|
||||||
image: golang
|
image: golang
|
||||||
secrets: [buildbot]
|
secrets: [buildbot]
|
||||||
commands:
|
commands:
|
||||||
- echo "Notifying"
|
- echo "Notifying"
|
||||||
- curl -H "Authorization:token $BUILDBOT" https://git.openprivacy.ca/api/v1/repos/cwtch.im/cwtch
|
- curl -H "Authorization:token $BUILDBOT" https://git.openprivacy.ca/api/v1/repos/cwtch.im/cwtch
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue