Drone Update

This commit is contained in:
Sarah Jamie Lewis 2024-01-02 13:08:59 -08:00
parent dacb67a563
commit 392d709020
1 changed files with 10 additions and 12 deletions

View File

@ -5,7 +5,7 @@ name: linux-test
steps:
- name: fetch
image: golang:1.19.1
image: golang:1.21.5
volumes:
- name: deps
path: /go
@ -14,47 +14,45 @@ steps:
- 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
- export GO111MODULE=on
- go mod vendor
- name: quality
image: golang:1.19.1
image: golang:1.21.5
volumes:
- name: deps
path: /go
commands:
- staticcheck ./...
- name: units-tests
image: golang:1.19.1
image: golang:1.21.5
volumes:
- name: deps
path: /go
commands:
- export PATH=`pwd`:$PATH
- export PATH=$PWD:$PATH
- sh testing/tests.sh
- name: integ-test
image: golang:1.19.1
image: golang:1.21.5
volumes:
- name: deps
path: /go
commands:
- export PATH=`pwd`:$PATH
- export PATH=$PWD:$PATH
- go test -timeout=30m -race -v cwtch.im/cwtch/testing/
- name: filesharing-integ-test
image: golang:1.19.1
image: golang:1.21.5
volumes:
- name: deps
path: /go
commands:
- export PATH=`pwd`:$PATH
- export PATH=$PWD:$PATH
- go test -timeout=20m -race -v cwtch.im/cwtch/testing/filesharing
- name: filesharing-autodownload-integ-test
image: golang:1.19.1
image: golang:1.21.5
volumes:
- name: deps
path: /go
commands:
- export PATH=`pwd`:$PATH
- export PATH=$PWD:$PATH
- go test -timeout=20m -race -v cwtch.im/cwtch/testing/autodownload
- name: notify-gogs
image: openpriv/drone-gogs