update .drone.yml to new format
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dan Ballard 2022-09-06 19:24:36 -07:00
parent 33bcc40206
commit 41f55451d4
1 changed files with 65 additions and 52 deletions

View File

@ -1,14 +1,14 @@
workspace: ---
base: /go kind: pipeline
path: src/cwtch.im/cwtch type: docker
name: linux-test
pipeline: steps:
fetch: - name: fetch
image: golang image: golang:1.17.5
when: volumes:
repo: cwtch.im/cwtch - name: deps
branch: master path: /go
event: [ push, pull_request ]
commands: commands:
- go install honnef.co/go/tools/cmd/staticcheck@latest - go install honnef.co/go/tools/cmd/staticcheck@latest
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor
@ -17,56 +17,69 @@ pipeline:
- go get -u golang.org/x/lint/golint - go get -u golang.org/x/lint/golint
- export GO111MODULE=on - export GO111MODULE=on
- go mod vendor - go mod vendor
quality: - name: quality
image: golang image: golang:1.17.5
when: volumes:
repo: cwtch.im/cwtch - name: deps
branch: master path: /go
event: [ push, pull_request ]
commands: commands:
- staticcheck ./... - staticcheck ./...
units-tests: - name: units-tests
image: golang image: golang:1.17.5
when: volumes:
repo: cwtch.im/cwtch - name: deps
branch: master path: /go
event: [ push, pull_request ]
commands: commands:
- export PATH=$PATH:/go/src/cwtch.im/cwtch - export PATH=`pwd`:$PATH
- sh testing/tests.sh - sh testing/tests.sh
integ-test: - name: integ-test
image: golang image: golang:1.17.5
when: volumes:
repo: cwtch.im/cwtch - name: deps
branch: master path: /go
event: [ push, pull_request ]
commands: commands:
- export PATH=`pwd`:$PATH
- go test -race -v cwtch.im/cwtch/testing/ - go test -race -v cwtch.im/cwtch/testing/
filesharing-integ-test: - name: filesharing-integ-test
image: golang image: golang:1.17.5
when: volumes:
repo: cwtch.im/cwtch - name: deps
branch: master path: /go
event: [ push, pull_request ]
commands: commands:
- export PATH=`pwd`:$PATH
- go test -race -v cwtch.im/cwtch/testing/filesharing - go test -race -v cwtch.im/cwtch/testing/filesharing
notify-email: - name: notify-email
image: drillster/drone-email image: drillster/drone-email
host: build.openprivacy.ca pull: if-not-exists
port: 25 host: build.openprivacy.ca
skip_verify: true port: 25
from: drone@openprivacy.ca skip_verify: true
when: from: drone@openprivacy.ca
repo: cwtch.im/cwtch when:
branch: master event: [ push, pull_request ]
event: [ push, pull_request ] status: [ failure ]
status: [ failure ] - name: notify-gogs
notify-gogs: image: openpriv/drone-gogs
image: openpriv/drone-gogs pull: if-not-exists
when: when:
repo: cwtch.im/cwtch
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/cwtch
branch: master
event:
- push
- pull_request
- tag