This repository has been archived on 2020-04-20. You can view files and clone it, but cannot push or open issues or pull requests.
libricochet-go/.drone.yml

52 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2018-07-02 18:09:12 +00:00
workspace:
base: /go
2018-11-19 23:14:58 +00:00
path: src/git.openprivacy.ca/openprivacy/libricochet-go
2018-07-02 18:09:12 +00:00
pipeline:
fetch:
image: golang
2019-11-06 19:40:58 +00:00
environment:
- GO111MODULE=on
2018-07-02 18:09:12 +00:00
commands:
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc
2018-07-02 18:09:12 +00:00
- chmod a+x tor
2019-11-06 19:57:14 +00:00
- go get -u golang.org/x/lint/golint
2019-11-06 19:52:22 +00:00
- go mod download
2018-07-02 18:09:12 +00:00
quality:
image: golang
2019-11-06 19:40:58 +00:00
environment:
- GO111MODULE=on
2018-07-02 18:09:12 +00:00
commands:
- go list ./... | xargs go vet
2019-01-23 18:48:58 +00:00
- go list ./... | grep -v "/wire/" | xargs golint -set_exit_status
2018-07-02 18:09:12 +00:00
units-tests:
image: golang
2019-11-06 19:40:58 +00:00
environment:
- GO111MODULE=on
2018-07-02 18:09:12 +00:00
commands:
- sh testing/tests.sh
integ-test:
image: golang
2019-11-06 19:40:58 +00:00
environment:
- GO111MODULE=on
2018-07-02 18:09:12 +00:00
commands:
- ./tor -f ./torrc
- sleep 15
2019-11-08 00:11:14 +00:00
- go test -race -v git.openprivacy.ca/openprivacy/libricochet-go/testing
2018-07-02 18:09:12 +00:00
notify-email:
image: drillster/drone-email
host: build.openprivacy.ca
port: 25
skip_verify: true
from: drone@openprivacy.ca
when:
2018-11-21 23:55:11 +00:00
status: [ failure ]
2018-07-02 18:09:12 +00:00
notify-gogs:
image: openpriv/drone-gogs
2018-07-02 18:09:12 +00:00
when:
event: pull_request
2018-11-09 23:49:36 +00:00
status: [ success, changed, failure ]
2018-07-08 01:16:43 +00:00
secrets: [gogs_account_token]
gogs_url: https://git.openprivacy.ca