cwtch/.drone.yml

46 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2018-06-30 04:38:08 +00:00
workspace:
base: /go
path: src/cwtch.im/cwtch
pipeline:
fetch:
2018-06-30 04:38:08 +00:00
image: golang
commands:
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/bin/tor
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/torrc
2018-07-02 16:09:49 +00:00
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/gogs-notify.sh
- chmod a+x tor
2018-06-30 04:38:08 +00:00
- go list ./... | xargs go get
- go get -u github.com/golang/lint/golint
quality:
image: golang
commands:
2018-06-30 04:38:08 +00:00
- go list ./... | xargs go vet
- go list ./... | xargs golint -set_exit_status
units-tests:
image: golang
commands:
- export PATH=$PATH:/go/src/cwtch.im/cwtch
2018-06-30 05:55:22 +00:00
- sh testing/tests.sh
integ-test:
image: golang
commands:
- ./tor -f ./torrc
2018-07-02 16:09:49 +00:00
- sleep 15
- go test -v cwtch.im/cwtch/testing
notify-email:
image: drillster/drone-email
host: build.openprivacy.ca
port: 25
skip_verify: true
2018-07-02 15:36:05 +00:00
from: drone@openprivacy.ca
when:
status: [ success, changed, failure ]
notify-gogs:
2018-06-30 05:55:22 +00:00
image: golang
2018-07-02 16:09:49 +00:00
when:
event: pull-request
secrets: [BUILDBOT]
2018-06-30 05:55:22 +00:00
commands:
- echo "Notifying"
2018-07-02 16:09:49 +00:00
- sh gogs-notify.sh