From 968807d11ad796850c4c9dd1914451e7ffda8cf7 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 1 Nov 2019 12:22:43 -0700 Subject: [PATCH] drone only work on master branch --- .drone.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.drone.yml b/.drone.yml index 70584f7..2973775 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,6 +5,10 @@ workspace: pipeline: fetch: image: golang + when: + repo: cwtch.im/cwtch + branch: master + event: [ push, pull_request ] commands: - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc @@ -14,16 +18,28 @@ pipeline: - go get -u golang.org/x/lint/golint quality: image: golang + when: + repo: cwtch.im/cwtch + branch: master + event: [ push, pull_request ] commands: - go list ./... | xargs go vet - go list ./... | xargs golint -set_exit_status units-tests: image: golang + when: + repo: cwtch.im/cwtch + branch: master + event: [ push, pull_request ] commands: - export PATH=$PATH:/go/src/cwtch.im/cwtch - sh testing/tests.sh integ-test: image: golang + when: + repo: cwtch.im/cwtch + branch: master + event: [ push, pull_request ] commands: - ./tor -f ./torrc - sleep 15 @@ -35,10 +51,15 @@ pipeline: skip_verify: true from: drone@openprivacy.ca when: + repo: cwtch.im/cwtch + branch: master + event: [ push, pull_request ] status: [ failure ] notify-gogs: image: openpriv/drone-gogs when: + repo: cwtch.im/cwtch + branch: master event: pull_request status: [ success, changed, failure ] secrets: [gogs_account_token]