From 65697b1efbabc1b865e4f97416698091ee154a33 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Tue, 17 Dec 2019 14:45:42 -0800 Subject: [PATCH] drone no dup builds --- .drone.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.drone.yml b/.drone.yml index a5d1d8b..1543cc8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,6 +4,10 @@ workspace: 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 @@ -13,16 +17,28 @@ pipeline: - go mod vendor - go get -u golang.org/x/lint/golint quality: + when: + repo: cwtch.im/tapir + branch: master + event: [ push, pull_request ] image: golang commands: - go list ./... | xargs go vet - go list ./... | xargs golint -set_exit_status 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: - ./tor -f ./torrc @@ -35,10 +51,15 @@ pipeline: 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]