You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, I wrote a configuration for tikv client testing, if someone needs it to run testw in their own gitlab, they can use it directly by saving the codes below as .gitlab-ci.yml at the root path of the project
variables:TIKV_VERSION: v5.3.0stages:- Download Dependency- Unit Test- Integration Testdependency:stage: Download Dependencyimage: golang:1.19variables:GOPATH: ${CI_PROJECT_DIR}/.goTIUP_HOME: ${CI_PROJECT_DIR}/tiupcache:key: ${CI_COMMIT_REF_SLUG}paths:- tiup/- .go/pkg/mod/policy: pushscript:- curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh && tiup/bin/tiup install tikv:${TIKV_VERSION} pd:${TIKV_VERSION} grafana:${TIKV_VERSION} prometheus:${TIKV_VERSION} playground# set up deploy token, so we can access private repo- echo -e "machine ${GIT_URL}\nlogin gitlab-deploy-token\npassword ${DEPLOY_TOKEN}" > ~/.netrc- go mod download- cd integration_tests && go mod downloadgolangci-lint:stage: Unit Testimage: golangci/golangci-lint:v1.47.3variables:GOPATH: ${CI_PROJECT_DIR}/.goscript:- golangci-lint run -vcache:key: ${CI_COMMIT_REF_SLUG}paths:- .go/pkg/mod/policy: pull.unit_test_env: &unit_test_envimage: golang:1.19variables:GOPATH: ${CI_PROJECT_DIR}/.goTIUP_HOME: ${CI_PROJECT_DIR}/tiupcache:key: ${CI_COMMIT_REF_SLUG}paths:- .go/pkg/mod/policy: pulltest:stage: Unit Test<<: *unit_test_envscript:- go test ./...race-test:stage: Unit Test<<: *unit_test_envscript:- go test -race ./....integration_test_env: &integration_test_envimage: golang:1.19variables:GOPATH: ${CI_PROJECT_DIR}/.goTIUP_HOME: ${CI_PROJECT_DIR}/tiupcache:key: ${CI_COMMIT_REF_SLUG}paths:- tiup/- .go/pkg/mod/policy: pull.start_integration_test: &start_integration_test- ./tiup/bin/tiup playground --mode tikv-slim ${TIKV_VERSION} --kv.config integration_tests/raw/tikv-${TIKV_API_VERSION}.toml &- sleep 20- cd integration_tests/raw && if [ "$ENABLE_RACE" = "true" ]; then go test --with-tikv ./... -race; else go test --with-tikv ./...; fiintegration-local-v1-ttl:stage: Integration Testbefore_script:- export TIKV_API_VERSION="v1ttl"<<: *integration_test_envscript:- *start_integration_testintegration-local-v2:stage: Integration Testbefore_script:- export TIKV_API_VERSION="v2"<<: *integration_test_envscript:- *start_integration_testintegration-local-race-v1-ttl:stage: Integration Testbefore_script:- export TIKV_API_VERSION="v1ttl"- export ENABLE_RACE="true"<<: *integration_test_envscript:- *start_integration_testintegration-local-race:stage: Integration Testbefore_script:- export TIKV_API_VERSION="v2"- export ENABLE_RACE="true"<<: *integration_test_envscript:- cd integration_tests/raw && go test --with-tikv ./... -race
The text was updated successfully, but these errors were encountered:
Hi everyone, I wrote a configuration for tikv client testing, if someone needs it to run testw in their own gitlab, they can use it directly by saving the codes below as
.gitlab-ci.yml
at the root path of the projectThe text was updated successfully, but these errors were encountered: