forked from cwtch.im/tapir
update drone format
This commit is contained in:
parent
bf7a0a4b39
commit
eceddc676d
85
.drone.yml
85
.drone.yml
|
@ -1,14 +1,14 @@
|
|||
workspace:
|
||||
base: /go
|
||||
path: src/cwtch.im/tapir
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: linux-test
|
||||
|
||||
pipeline:
|
||||
fetch:
|
||||
when:
|
||||
repo: cwtch.im/tapir
|
||||
branch: master
|
||||
event: [ push, pull_request ]
|
||||
image: golang
|
||||
steps:
|
||||
- name: fetch
|
||||
image: golang:1.17.5
|
||||
volumes:
|
||||
- name: deps
|
||||
path: /go
|
||||
commands:
|
||||
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor
|
||||
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc
|
||||
|
@ -16,49 +16,58 @@ pipeline:
|
|||
- export GO111MODULE=on
|
||||
- go mod download
|
||||
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||
quality:
|
||||
when:
|
||||
repo: cwtch.im/tapir
|
||||
branch: master
|
||||
event: [ push, pull_request ]
|
||||
image: golang
|
||||
- name: quality
|
||||
image: golang:1.17.5
|
||||
volumes:
|
||||
- name: deps
|
||||
path: /go
|
||||
commands:
|
||||
- staticcheck ./...
|
||||
units-tests:
|
||||
when:
|
||||
repo: cwtch.im/tapir
|
||||
branch: master
|
||||
event: [ push, pull_request ]
|
||||
image: golang
|
||||
- name: units-tests
|
||||
image: golang:1.17.5
|
||||
volumes:
|
||||
- name: deps
|
||||
path: /go
|
||||
commands:
|
||||
- export PATH=$PATH:/go/src/cwtch.im/tapir
|
||||
- export PATH=`pwd`:$PATH
|
||||
- sh testing/tests.sh
|
||||
integ-test:
|
||||
when:
|
||||
repo: cwtch.im/tapir
|
||||
branch: master
|
||||
event: [ push, pull_request ]
|
||||
image: golang
|
||||
- name: integ-test
|
||||
image: golang:1.17.5
|
||||
volumes:
|
||||
- name: deps
|
||||
path: /go
|
||||
commands:
|
||||
- export PATH=$PATH:/go/src/cwtch.im/tapir
|
||||
- export PATH=`pwd`:$PATH
|
||||
- go test -race -v git.openprivacy.ca/cwtch.im/tapir/testing
|
||||
notify-email:
|
||||
- name: notify-email
|
||||
image: drillster/drone-email
|
||||
host: build.openprivacy.ca
|
||||
port: 25
|
||||
skip_verify: true
|
||||
from: drone@openprivacy.ca
|
||||
when:
|
||||
repo: cwtch.im/tapir
|
||||
branch: master
|
||||
event: [ push, pull_request ]
|
||||
status: [ failure ]
|
||||
notify-gogs:
|
||||
- name: notify-gogs
|
||||
image: openpriv/drone-gogs
|
||||
pull: if-not-exists
|
||||
when:
|
||||
repo: cwtch.im/tapir
|
||||
branch: master
|
||||
event: pull_request
|
||||
status: [ success, changed, failure ]
|
||||
secrets: [gogs_account_token]
|
||||
environment:
|
||||
GOGS_ACCOUNT_TOKEN:
|
||||
from_secret: gogs_account_token
|
||||
settings:
|
||||
gogs_url: https://git.openprivacy.ca
|
||||
|
||||
volumes:
|
||||
# gopath where bin and pkg lives to persist across steps
|
||||
- name: deps
|
||||
temp: {}
|
||||
|
||||
trigger:
|
||||
repo: cwtch.im/tapir
|
||||
branch: master
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
- tag
|
Loading…
Reference in New Issue