forked from cwtch.im/tapir
update drone format
This commit is contained in:
parent
bf7a0a4b39
commit
eceddc676d
89
.drone.yml
89
.drone.yml
|
@ -1,14 +1,14 @@
|
||||||
workspace:
|
---
|
||||||
base: /go
|
kind: pipeline
|
||||||
path: src/cwtch.im/tapir
|
type: docker
|
||||||
|
name: linux-test
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
fetch:
|
- name: fetch
|
||||||
when:
|
image: golang:1.17.5
|
||||||
repo: cwtch.im/tapir
|
volumes:
|
||||||
branch: master
|
- name: deps
|
||||||
event: [ push, pull_request ]
|
path: /go
|
||||||
image: golang
|
|
||||||
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
|
||||||
|
@ -16,49 +16,58 @@ pipeline:
|
||||||
- export GO111MODULE=on
|
- export GO111MODULE=on
|
||||||
- go mod download
|
- go mod download
|
||||||
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
quality:
|
- name: quality
|
||||||
when:
|
image: golang:1.17.5
|
||||||
repo: cwtch.im/tapir
|
volumes:
|
||||||
branch: master
|
- name: deps
|
||||||
event: [ push, pull_request ]
|
path: /go
|
||||||
image: golang
|
|
||||||
commands:
|
commands:
|
||||||
- staticcheck ./...
|
- staticcheck ./...
|
||||||
units-tests:
|
- name: units-tests
|
||||||
when:
|
image: golang:1.17.5
|
||||||
repo: cwtch.im/tapir
|
volumes:
|
||||||
branch: master
|
- name: deps
|
||||||
event: [ push, pull_request ]
|
path: /go
|
||||||
image: golang
|
|
||||||
commands:
|
commands:
|
||||||
- export PATH=$PATH:/go/src/cwtch.im/tapir
|
- export PATH=`pwd`:$PATH
|
||||||
- sh testing/tests.sh
|
- sh testing/tests.sh
|
||||||
integ-test:
|
- name: integ-test
|
||||||
when:
|
image: golang:1.17.5
|
||||||
repo: cwtch.im/tapir
|
volumes:
|
||||||
branch: master
|
- name: deps
|
||||||
event: [ push, pull_request ]
|
path: /go
|
||||||
image: golang
|
|
||||||
commands:
|
commands:
|
||||||
- export PATH=$PATH:/go/src/cwtch.im/tapir
|
- export PATH=`pwd`:$PATH
|
||||||
- go test -race -v git.openprivacy.ca/cwtch.im/tapir/testing
|
- go test -race -v git.openprivacy.ca/cwtch.im/tapir/testing
|
||||||
notify-email:
|
- name: notify-email
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
host: build.openprivacy.ca
|
host: build.openprivacy.ca
|
||||||
port: 25
|
port: 25
|
||||||
skip_verify: true
|
skip_verify: true
|
||||||
from: drone@openprivacy.ca
|
from: drone@openprivacy.ca
|
||||||
when:
|
when:
|
||||||
repo: cwtch.im/tapir
|
|
||||||
branch: master
|
|
||||||
event: [ push, pull_request ]
|
|
||||||
status: [ failure ]
|
status: [ failure ]
|
||||||
notify-gogs:
|
- name: notify-gogs
|
||||||
image: openpriv/drone-gogs
|
image: openpriv/drone-gogs
|
||||||
|
pull: if-not-exists
|
||||||
when:
|
when:
|
||||||
repo: cwtch.im/tapir
|
|
||||||
branch: master
|
|
||||||
event: pull_request
|
event: pull_request
|
||||||
status: [ success, changed, failure ]
|
status: [ success, changed, failure ]
|
||||||
secrets: [gogs_account_token]
|
environment:
|
||||||
gogs_url: https://git.openprivacy.ca
|
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