drone only work on master branch
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
5a8dbabb3c
commit
968807d11a
21
.drone.yml
21
.drone.yml
|
@ -5,6 +5,10 @@ workspace:
|
||||||
pipeline:
|
pipeline:
|
||||||
fetch:
|
fetch:
|
||||||
image: golang
|
image: golang
|
||||||
|
when:
|
||||||
|
repo: cwtch.im/cwtch
|
||||||
|
branch: master
|
||||||
|
event: [ push, pull_request ]
|
||||||
commands:
|
commands:
|
||||||
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor
|
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor
|
||||||
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc
|
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc
|
||||||
|
@ -14,16 +18,28 @@ pipeline:
|
||||||
- go get -u golang.org/x/lint/golint
|
- go get -u golang.org/x/lint/golint
|
||||||
quality:
|
quality:
|
||||||
image: golang
|
image: golang
|
||||||
|
when:
|
||||||
|
repo: cwtch.im/cwtch
|
||||||
|
branch: master
|
||||||
|
event: [ push, pull_request ]
|
||||||
commands:
|
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:
|
units-tests:
|
||||||
image: golang
|
image: golang
|
||||||
|
when:
|
||||||
|
repo: cwtch.im/cwtch
|
||||||
|
branch: master
|
||||||
|
event: [ push, pull_request ]
|
||||||
commands:
|
commands:
|
||||||
- export PATH=$PATH:/go/src/cwtch.im/cwtch
|
- export PATH=$PATH:/go/src/cwtch.im/cwtch
|
||||||
- sh testing/tests.sh
|
- sh testing/tests.sh
|
||||||
integ-test:
|
integ-test:
|
||||||
image: golang
|
image: golang
|
||||||
|
when:
|
||||||
|
repo: cwtch.im/cwtch
|
||||||
|
branch: master
|
||||||
|
event: [ push, pull_request ]
|
||||||
commands:
|
commands:
|
||||||
- ./tor -f ./torrc
|
- ./tor -f ./torrc
|
||||||
- sleep 15
|
- sleep 15
|
||||||
|
@ -35,10 +51,15 @@ pipeline:
|
||||||
skip_verify: true
|
skip_verify: true
|
||||||
from: drone@openprivacy.ca
|
from: drone@openprivacy.ca
|
||||||
when:
|
when:
|
||||||
|
repo: cwtch.im/cwtch
|
||||||
|
branch: master
|
||||||
|
event: [ push, pull_request ]
|
||||||
status: [ failure ]
|
status: [ failure ]
|
||||||
notify-gogs:
|
notify-gogs:
|
||||||
image: openpriv/drone-gogs
|
image: openpriv/drone-gogs
|
||||||
when:
|
when:
|
||||||
|
repo: cwtch.im/cwtch
|
||||||
|
branch: master
|
||||||
event: pull_request
|
event: pull_request
|
||||||
status: [ success, changed, failure ]
|
status: [ success, changed, failure ]
|
||||||
secrets: [gogs_account_token]
|
secrets: [gogs_account_token]
|
||||||
|
|
Loading…
Reference in New Issue