From f0870e4407737ff000ba1e93ecbfb29c3e6de3c8 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 17 Mar 2021 12:35:55 -0700 Subject: [PATCH] drone pipeline file test --- .drone.yml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..419c14b --- /dev/null +++ b/.drone.yml @@ -0,0 +1,63 @@ +--- +kind: pipeline +type: docker +name: default + +steps: + - name: fetch + image: golang + when: + repo: flutter/libcwtch-go + branch: trunk + 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 + - chmod a+x tor + - go get -u golang.org/x/lint/golint + - go mod vendor + quality: + image: golang + when: + repo: flutter/libcwtch-go + branch: trunk + event: [ push, pull_request ] + commands: + - go list ./... | xargs go vet + - go list ./... | xargs golint -set_exit_status + build-linux: + image: openpriv/android-go-mobile:2021 + when: + repo: flutter/libcwtch-go + branch: trunk + event: [ push, pull_request ] + commands: + - make linux + build-androiud: + image: openpriv/android-go-mobile:2021 + when: + repo: flutter/libcwtch-go + branch: trunk + event: [ push, pull_request ] + commands: + - make android + notify-email: + image: drillster/drone-email + host: build.openprivacy.ca + port: 25 + skip_verify: true + from: drone@openprivacy.ca + when: + repo: flutter/libcwtch-go + branch: trunk + event: [ push, pull_request ] + status: [ failure ] + notify-gogs: + image: openpriv/drone-gogs + when: + repo: flutter/libcwtch-go + branch: trunk + event: pull_request + status: [ success, changed, failure ] + secrets: [gogs_account_token] + gogs_url: https://git.openprivacy.ca \ No newline at end of file