update automated testing
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
ae0aa7a5b5
commit
4fc3121d23
10
.drone.yml
10
.drone.yml
|
@ -5,20 +5,20 @@ name: linux-test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fetch
|
- name: fetch
|
||||||
image: golang:1.17.5
|
image: golang:1.21.5
|
||||||
volumes:
|
volumes:
|
||||||
- name: deps
|
- name: deps
|
||||||
path: /go
|
path: /go
|
||||||
commands:
|
commands:
|
||||||
#- go get -u golang.org/x/lint/golint
|
|
||||||
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
|
- go install go.uber.org/nilaway/cmd/nilaway@latest
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
- go get
|
- go get
|
||||||
- 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:1.17.5
|
image: golang:1.21.5
|
||||||
volumes:
|
volumes:
|
||||||
- name: deps
|
- name: deps
|
||||||
path: /go
|
path: /go
|
||||||
|
@ -27,7 +27,7 @@ steps:
|
||||||
- staticcheck ./...
|
- staticcheck ./...
|
||||||
|
|
||||||
- name: units-tests
|
- name: units-tests
|
||||||
image: golang:1.17.5
|
image: golang:1.21.5
|
||||||
volumes:
|
volumes:
|
||||||
- name: deps
|
- name: deps
|
||||||
path: /go
|
path: /go
|
||||||
|
@ -35,7 +35,7 @@ steps:
|
||||||
- sh testing/tests.sh
|
- sh testing/tests.sh
|
||||||
|
|
||||||
- name: test-builda-app
|
- name: test-builda-app
|
||||||
image: golang:1.17.5
|
image: golang:1.21.5
|
||||||
volumes:
|
volumes:
|
||||||
- name: deps
|
- name: deps
|
||||||
path: /go
|
path: /go
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,6 +1,6 @@
|
||||||
module git.openprivacy.ca/cwtch.im/server
|
module git.openprivacy.ca/cwtch.im/server
|
||||||
|
|
||||||
go 1.14
|
go 1.20
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cwtch.im/cwtch v0.18.0
|
cwtch.im/cwtch v0.18.0
|
||||||
|
|
|
@ -11,6 +11,9 @@ echo "Linting:"
|
||||||
|
|
||||||
staticcheck ./...
|
staticcheck ./...
|
||||||
|
|
||||||
|
echo "Running nilaway..."
|
||||||
|
nilaway -include-pkgs="cwtch.im/cwtch,cwtch.im/tapir,git.openprivacy.ca/openprivacy/connectivity" -exclude-file-docstrings="nolint:nilaway" ./...
|
||||||
|
|
||||||
|
|
||||||
echo "Time to format"
|
echo "Time to format"
|
||||||
gofmt -l -s -w .
|
gofmt -l -s -w .
|
||||||
|
|
Loading…
Reference in New Issue