update drone format
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dan Ballard 2022-09-05 15:10:30 -07:00
parent bf7a0a4b39
commit eceddc676d
1 changed files with 49 additions and 40 deletions

View File

@ -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