drone.yml rely on trigger, rm most when
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Dan Ballard 2021-03-24 18:34:03 -07:00
parent a0a836ebc6
commit 77247bc4b9
1 changed files with 2 additions and 26 deletions

View File

@ -9,10 +9,6 @@ steps:
volumes: volumes:
- name: deps - name: deps
path: /go path: /go
when:
repo: flutter/libcwtch-go
branch: trunk
event: [ push, pull_request ]
commands: commands:
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc
@ -25,15 +21,12 @@ steps:
# TODO: upgrade to go1.16, remove mod/vendor, add go install for 1.16 # TODO: upgrade to go1.16, remove mod/vendor, add go install for 1.16
- echo `git describe --tags` > VERSION - echo `git describe --tags` > VERSION
- echo `date +%G-%m-%d-%H-%M` > BUILDDATE - echo `date +%G-%m-%d-%H-%M` > BUILDDATE
- name: quality - name: quality
image: golang image: golang
volumes: volumes:
- name: deps - name: deps
path: /go path: /go
when:
repo: flutter/libcwtch-go
branch: trunk
event: [ push, pull_request ]
commands: commands:
- go list ./... | xargs go vet - go list ./... | xargs go vet
- go list ./... | xargs golint - go list ./... | xargs golint
@ -44,10 +37,6 @@ steps:
volumes: volumes:
- name: deps - name: deps
path: /go path: /go
when:
repo: flutter/libcwtch-go
branch: trunk
event: [ push, pull_request ]
commands: commands:
- make linux - make linux
@ -56,10 +45,6 @@ steps:
volumes: volumes:
- name: deps - name: deps
path: /go path: /go
when:
repo: flutter/libcwtch-go
branch: trunk
event: [ push, pull_request ]
commands: commands:
- go mod download - go mod download
- gomobile init - gomobile init
@ -72,10 +57,6 @@ steps:
volumes: volumes:
- name: deps - name: deps
path: /go path: /go
when:
repo: flutter/libcwtch-go
branch: trunk
event: [ push, pull_request ]
commands: commands:
- make windows - make windows
@ -86,16 +67,11 @@ steps:
skip_verify: true skip_verify: true
from: drone@openprivacy.ca from: drone@openprivacy.ca
when: when:
repo: flutter/libcwtch-go
branch: trunk
event: [ push, pull_request ]
status: [ failure ] status: [ failure ]
- name: notify-gogs - name: notify-gogs
image: openpriv/drone-gogs image: openpriv/drone-gogs
when: when:
repo: flutter/libcwtch-go
branch: trunk
event: pull_request
status: [ success, changed, failure ] status: [ success, changed, failure ]
secrets: [gogs_account_token] secrets: [gogs_account_token]
gogs_url: https://git.openprivacy.ca gogs_url: https://git.openprivacy.ca