update .drone.yml to new format
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
33bcc40206
commit
41f55451d4
97
.drone.yml
97
.drone.yml
|
@ -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
|
||||||
|
pull: if-not-exists
|
||||||
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/cwtch
|
|
||||||
branch: master
|
|
||||||
event: [ push, pull_request ]
|
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/cwtch
|
|
||||||
branch: master
|
|
||||||
event: pull_request
|
event: pull_request
|
||||||
status: [ success, changed, failure ]
|
status: [ success, changed, failure ]
|
||||||
secrets: [gogs_account_token]
|
environment:
|
||||||
|
GOGS_ACCOUNT_TOKEN:
|
||||||
|
from_secret: gogs_account_token
|
||||||
|
settings:
|
||||||
gogs_url: https://git.openprivacy.ca
|
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
|
||||||
|
|
Loading…
Reference in New Issue