1
0
Fork 0

Update config.yml

master
Philip O'Toole 1 year ago committed by GitHub
parent 12b43f72f2
commit 9df6fea0ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,54 +1,40 @@
# CircleCI 2.0 configuration file
#
# CircleCI 2.0 configuration file
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
test:
docker:
# specify the version
- image: cimg/go:1.20.0
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
#### 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
steps:
- checkout
# specify any bash command here prefixed with `run: `
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run: go version
- run: go get -v -t -d ./...
- run: bash gofmt.sh
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- run: test -z "$(gofmt -l . | tee /dev/stderr)"
- run: go vet ./...
- run: go test -failfast ./...
# The resource_class feature allows configuring CPU and RAM resources for each job. Different resource classes are available for different executors. https://circleci.com/docs/2.0/configuration-reference/#resourceclass
resource_class: large
race:
docker:
# specify the version
- image: cimg/go:1.20.0
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
#### 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
steps:
- checkout
# specify any bash command here prefixed with `run: `
# BoltDB, no longer maintained, has pointer issues. However, it's run
# for years without actual issue so disabling the pointer tests
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run: go version
- run: go get -t -d ./...
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- run:
command: go test -failfast -timeout 20m -gcflags=all=-d=checkptr=0 -race ./...
environment:
@ -61,19 +47,25 @@ jobs:
- image: gcr.io/etcd-development/etcd:v3.5.1
steps:
- checkout
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run: sudo apt-get update
- run: sudo apt-get install python3
- run: sudo apt install python3-pip
- run: python3 -m pip install requests
- run: go version
- run: go get -t -d -v ./...
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- run: go install -tags osusergo,netgo,sqlite_omit_load_extension
-ldflags="-extldflags=-static" ./...
- run:
command: python3 system_test/full_system_test.py
environment:
RQLITED_PATH: /home/circleci/go/bin/rqlited
# The resource_class feature allows configuring CPU and RAM resources for each job. Different resource classes are available for different executors. https://circleci.com/docs/2.0/configuration-reference/#resourceclass
resource_class: large
workflows:

Loading…
Cancel
Save