workspace: base: /go path: src/cwtch.im/tapir pipeline: fetch: when: repo: cwtch.im/tapir branch: master event: [ push, pull_request ] image: golang 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 - export GO111MODULE=on - go mod download - go install honnef.co/go/tools/cmd/staticcheck@latest quality: when: repo: cwtch.im/tapir branch: master event: [ push, pull_request ] image: golang commands: - staticcheck ./... units-tests: when: repo: cwtch.im/tapir branch: master event: [ push, pull_request ] image: golang commands: - export PATH=$PATH:/go/src/cwtch.im/tapir - sh testing/tests.sh integ-test: when: repo: cwtch.im/tapir branch: master event: [ push, pull_request ] image: golang commands: - export PATH=$PATH:/go/src/cwtch.im/tapir - go test -race -v git.openprivacy.ca/cwtch.im/tapir/testing notify-email: image: drillster/drone-email host: build.openprivacy.ca port: 25 skip_verify: true from: drone@openprivacy.ca when: repo: cwtch.im/tapir branch: master event: [ push, pull_request ] status: [ failure ] notify-gogs: image: openpriv/drone-gogs when: repo: cwtch.im/tapir branch: master event: pull_request status: [ success, changed, failure ] secrets: [gogs_account_token] gogs_url: https://git.openprivacy.ca