--- kind: pipeline type: docker name: linux-test steps: - name: fetch image: golang:1.17.5 volumes: - name: deps path: /go 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 - name: quality image: golang:1.17.5 volumes: - name: deps path: /go commands: - staticcheck ./... - name: units-tests image: golang:1.17.5 volumes: - name: deps path: /go commands: - export PATH=`pwd`:$PATH - sh testing/tests.sh - name: integ-test image: golang:1.17.5 volumes: - name: deps path: /go commands: - export PATH=`pwd`:$PATH - go test -race -v git.openprivacy.ca/cwtch.im/tapir/testing - name: notify-email image: drillster/drone-email host: build.openprivacy.ca port: 25 skip_verify: true from: drone@openprivacy.ca when: status: [ failure ] - name: notify-gogs image: openpriv/drone-gogs pull: if-not-exists when: event: pull_request status: [ success, changed, failure ] 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