From e9b6e10795900a5b99d391fb6fd164a95a780bbb Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 17 Mar 2021 13:31:16 -0700 Subject: [PATCH] drone.yml keep vendors --- .drone.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7ecc2f0..5022550 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,6 +6,9 @@ name: default steps: - name: fetch image: golang + volumes: + - name: deps + path: /go when: repo: flutter/libcwtch-go branch: trunk @@ -15,9 +18,16 @@ steps: - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc - chmod a+x tor - go get -u golang.org/x/lint/golint - # go install for 1.16 + #- export GO111MODULE=on + #- go mod vendor + - go get + # TODO: upgrade to go1.16, remove mod/vendor, add go install for 1.16 + # go vendor so packages aren't refetched each new stage which loses this working dir, or restructure workspace to include pkg - name: quality image: golang + volumes: + - name: deps + path: /go when: repo: flutter/libcwtch-go branch: trunk @@ -26,16 +36,22 @@ steps: - go list ./... | xargs go vet - go list ./... | xargs golint #Todo: fix all the lint errors and add `-set_exit_status` above to enforce linting - - name: buildLinux + - name: build-linux image: openpriv/android-go-mobile:2021 + volumes: + - name: deps + path: /go when: repo: flutter/libcwtch-go branch: trunk event: [ push, pull_request ] commands: - make linux - - name: build-androiud + - name: build-android image: openpriv/android-go-mobile:2021 + volumes: + - name: deps + path: /go when: repo: flutter/libcwtch-go branch: trunk @@ -62,3 +78,7 @@ steps: status: [ success, changed, failure ] secrets: [gogs_account_token] gogs_url: https://git.openprivacy.ca + +volumes: + - name: deps + temp: {}