forked from cwtch.im/cwtch
drone only work on master branch
This commit is contained in:
parent
5a8dbabb3c
commit
968807d11a
21
.drone.yml
21
.drone.yml
|
@ -5,6 +5,10 @@ workspace:
|
|||
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
|
||||
|
@ -14,16 +18,28 @@ pipeline:
|
|||
- 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
|
||||
|
@ -35,10 +51,15 @@ pipeline:
|
|||
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]
|
||||
|
|
Loading…
Reference in New Issue