With kubernetes 1.18 release of client-go, signatures on methods in generated clientsets, dynamic, metadata, and scale clients have been modified to accept context.Context as a first argument. Signatures of Create, Update, and Patch methods have been updated to accept CreateOptions, UpdateOptions and PatchOptions respectively. Signatures of Delete and DeleteCollection methods now accept DeleteOptions by value instead of by reference. These changes are now accommodated with this PR and client-go and dependencies are updated to v1.18.0 Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
language: go
|
|
|
|
matrix:
|
|
include:
|
|
- go: 1.13.x
|
|
env: VET=1 GO111MODULE=on
|
|
- go: 1.13.x
|
|
env: RACE=1 GO111MODULE=on
|
|
- go: 1.13.x
|
|
env: RUN386=1
|
|
- go: 1.13.x
|
|
env: GRPC_GO_RETRY=on
|
|
- go: 1.13.x
|
|
env: TESTEXTRAS=1
|
|
- go: 1.12.x
|
|
env: GO111MODULE=on
|
|
- go: 1.11.x
|
|
env: GO111MODULE=on
|
|
- go: 1.9.x
|
|
env: GAE=1
|
|
|
|
go_import_path: google.golang.org/grpc
|
|
|
|
before_install:
|
|
- if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi
|
|
- if [[ -n "${RUN386}" ]]; then export GOARCH=386; fi
|
|
- if [[ "${TRAVIS_EVENT_TYPE}" = "cron" && -z "${RUN386}" ]]; then RACE=1; fi
|
|
- if [[ "${TRAVIS_EVENT_TYPE}" != "cron" ]]; then export VET_SKIP_PROTO=1; fi
|
|
|
|
install:
|
|
- try3() { eval "$*" || eval "$*" || eval "$*"; }
|
|
- try3 'if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else make testdeps; fi'
|
|
- if [[ -n "${GAE}" ]]; then source ./install_gae.sh; make testappenginedeps; fi
|
|
- if [[ -n "${VET}" ]]; then ./vet.sh -install; fi
|
|
|
|
script:
|
|
- set -e
|
|
- if [[ -n "${TESTEXTRAS}" ]]; then examples/examples_test.sh; interop/interop_test.sh; make testsubmodule; exit 0; fi
|
|
- if [[ -n "${VET}" ]]; then ./vet.sh; fi
|
|
- if [[ -n "${GAE}" ]]; then make testappengine; exit 0; fi
|
|
- if [[ -n "${RACE}" ]]; then make testrace; exit 0; fi
|
|
- make test
|