mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
Move container registry management into glance with import from kubeserver, add container_image model, resolve container_image_id in compute, and switch dashboard create flow to glance.
53 lines
1.9 KiB
YAML
53 lines
1.9 KiB
YAML
language: go
|
|
go:
|
|
- 1.x
|
|
arch:
|
|
- amd64
|
|
- arm64
|
|
- ppc64le
|
|
install:
|
|
- go get gotest.tools/gotestsum
|
|
jobs:
|
|
include:
|
|
# include older golang
|
|
- go: 1.15.x
|
|
arch:
|
|
- amd64
|
|
script:
|
|
- gotestsum -f short-with-failures -- -timeout=10m ./...
|
|
|
|
# include osx, but only for latest go version - skip testing for race
|
|
- go: 1.x
|
|
os:
|
|
- osx
|
|
script:
|
|
- gotestsum -f short-with-failures -- -timeout=10m ./...
|
|
|
|
# include linting check job, but only for latest go version and amd64 arch
|
|
- go: 1.x
|
|
arch: amd64
|
|
install:
|
|
go get github.com/golangci/golangci-lint/cmd/golangci-lint
|
|
script:
|
|
- golangci-lint run --new-from-rev master
|
|
|
|
# include race test, but only for latest go version and amd64 arch
|
|
- go: 1.x
|
|
arch: amd64
|
|
script:
|
|
- gotestsum -f short-with-failures -- -timeout=20m -race ./...
|
|
|
|
# include long test and test coverage collection, but only for latest go version and amd64 arch
|
|
- go: 1.x
|
|
arch: amd64
|
|
script:
|
|
- gotestsum -f short-with-failures -- -timeout=20m -covermode=atomic -coverprofile=coverage.txt -coverpkg "./..." ./... -args -enable-long
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
notifications:
|
|
slack:
|
|
secure: Sf7kZf7ZGbnwWUMpffHwMu5A0cHkLK2MYY32LNTPj4+/3qC3Ghl7+9v4TSLOqOlCwdRNjOGblAq7s+GDJed6/xgRQl1JtCi1klzZNrYX4q01pgTPvvGcwbBkIYgeMaPeIRcK9OZnud7sRXdttozgTOpytps2U6Js32ip7uj5mHSg2ub0FwoSJwlS6dbezZ8+eDhoha0F/guY99BEwx8Bd+zROrT2TFGsSGOFGN6wFc7moCqTHO/YkWib13a2QNXqOxCCVBy/lt76Wp+JkeFppjHlzs/2lP3EAk13RIUAaesdEUHvIHrzCyNJEd3/+KO2DzsWOYfpktd+KBCvgaYOsoo7ubdT3IROeAegZdCgo/6xgCEsmFc9ZcqCfN5yNx2A+BZ2Vwmpws+bQ1E1+B5HDzzaiLcYfG4X2O210QVGVDLWsv1jqD+uPYeHY2WRfh5ZsIUFvaqgUEnwHwrK44/8REAhQavt1QAj5uJpsRd7CkRVPWRNK+yIky+wgbVUFEchRNmS55E7QWf+W4+4QZkQi7vUTMc9nbTUu2Es9NfvfudOpM2wZbn98fjpb/qq/nRv6Bk+ca+7XD5/IgNLMbWp2ouDdzbiHLCOfDUiHiDJhLfFZx9Bwo7ZwfzeOlbrQX66bx7xRKYmOe4DLrXhNcpbsMa8qbfxlZRCmYbubB/Y8h4=
|
|
script:
|
|
- gotestsum -f short-with-failures -- -timeout=10m ./...
|