mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
395 B
20 lines
395 B
language: go
|
|
|
|
go:
|
|
- 1.10.x
|
|
- 1.11.x
|
|
- 1.12.x
|
|
- 1.13.x
|
|
- 1.14.x
|
|
|
|
script:
|
|
- go get -d -t ./...
|
|
- go vet ./...
|
|
- go test ./...
|
|
- >
|
|
go_version=$(go version);
|
|
if [ ${go_version:13:4} = "1.12" ]; then
|
|
go get -u golang.org/x/tools/cmd/goimports;
|
|
goimports -d -e ./ | grep '.*' && { echo; echo "Aborting due to non-empty goimports output."; exit 1; } || :;
|
|
fi
|
|
|
|
|