mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
37 lines
966 B
YAML
37 lines
966 B
YAML
# Golang CircleCI 2.0 configuration file
|
|
#
|
|
# Check https://circleci.com/docs/2.0/language-go/ for more details
|
|
version: 2
|
|
jobs:
|
|
test:
|
|
requires:
|
|
- check
|
|
docker:
|
|
- image: yunion/centos-build:go-1.21.10-0
|
|
environment:
|
|
ONECLOUD_CI_BUILD: "1"
|
|
|
|
#### TEMPLATE_NOTE: go expects specific checkout path representing url
|
|
#### expecting it in the form of
|
|
#### /go/src/github.com/circleci/go-tool
|
|
#### /go/src/bitbucket.org/circleci/go-tool
|
|
working_directory: /root/go/src/yunion.io/x/onecloud
|
|
resource_class: large
|
|
parallelism: 1
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
command: |
|
|
make -j3 check
|
|
make test
|
|
targets="$(circleci tests glob "cmd/*" | grep -v cmd/host-image | circleci tests split)"
|
|
echo $targets | tr ' ' '\n'
|
|
make $targets
|
|
ls -lh _output/bin/
|
|
|
|
workflows:
|
|
version: 2
|
|
build_and_test:
|
|
jobs:
|
|
- test
|