sudo: false

language: go

go:
 - "1.21.x"
 - "1.22.x"
 - "1.23.x"

script:
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls
  - go get github.com/kisielk/errcheck
  - go get -u github.com/FiloSottile/gvt
  - gvt restore
  - go test -race -v $(go list ./... | grep -v vendor/)
  - go vet $(go list ./... | grep -v vendor/)
  - go test ./test -v -indexType scorch
  - errcheck -ignorepkg fmt $(go list ./... | grep -v vendor/);
  - scripts/project-code-coverage.sh
  - scripts/build_children.sh

notifications:
  email:
    - fts-team@couchbase.com
