tapir/.drone.yml

73 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2022-09-05 22:10:30 +00:00
---
kind: pipeline
type: docker
name: linux-test
2019-08-07 20:08:02 +00:00
2022-09-05 22:10:30 +00:00
steps:
- name: fetch
image: golang:1.17.5
volumes:
- name: deps
path: /go
2019-08-07 20:08:02 +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
- chmod a+x tor
2019-08-13 19:23:12 +00:00
- export GO111MODULE=on
- go mod download
- go install honnef.co/go/tools/cmd/staticcheck@latest
2022-09-05 22:10:30 +00:00
- name: quality
image: golang:1.17.5
volumes:
- name: deps
path: /go
2019-08-07 20:08:02 +00:00
commands:
2022-09-05 22:10:30 +00:00
- staticcheck ./...
- name: units-tests
image: golang:1.17.5
volumes:
- name: deps
path: /go
2019-08-07 20:08:02 +00:00
commands:
2022-09-05 22:10:30 +00:00
- export PATH=`pwd`:$PATH
2019-08-07 20:08:02 +00:00
- sh testing/tests.sh
2022-09-05 22:10:30 +00:00
- name: integ-test
image: golang:1.17.5
volumes:
- name: deps
path: /go
commands:
2022-09-05 22:10:30 +00:00
- export PATH=`pwd`:$PATH
2021-04-09 01:05:38 +00:00
- go test -race -v git.openprivacy.ca/cwtch.im/tapir/testing
2022-09-05 22:10:30 +00:00
- name: notify-email
2019-08-07 20:08:02 +00:00
image: drillster/drone-email
host: build.openprivacy.ca
port: 25
skip_verify: true
from: drone@openprivacy.ca
when:
status: [ failure ]
2022-09-05 22:10:30 +00:00
- name: notify-gogs
2019-08-07 20:08:02 +00:00
image: openpriv/drone-gogs
2022-09-05 22:10:30 +00:00
pull: if-not-exists
2019-08-07 20:08:02 +00:00
when:
event: pull_request
status: [ success, changed, failure ]
2022-09-05 22:10:30 +00:00
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