2021-03-11 19:13:27 +05:30
|
|
|
workhorse:verify:
|
|
|
|
extends: .workhorse:rules:workhorse
|
2022-11-25 23:54:43 +05:30
|
|
|
image: ${GITLAB_DEPENDENCY_PROXY_ADDRESS}golang:${GO_VERSION}
|
2021-03-11 19:13:27 +05:30
|
|
|
stage: test
|
|
|
|
needs: []
|
|
|
|
script:
|
2022-11-25 23:54:43 +05:30
|
|
|
- go version
|
2022-03-02 08:16:31 +05:30
|
|
|
- make -C workhorse # test build
|
2021-03-11 19:13:27 +05:30
|
|
|
- make -C workhorse verify
|
|
|
|
|
|
|
|
.workhorse:test:
|
|
|
|
extends: .workhorse:rules:workhorse
|
2022-10-11 01:57:18 +05:30
|
|
|
image: ${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images/debian-${DEBIAN_VERSION}-ruby-${RUBY_VERSION}-golang-${GO_VERSION}:git-2.36
|
2021-03-11 19:13:27 +05:30
|
|
|
variables:
|
2021-12-11 22:18:48 +05:30
|
|
|
GITALY_ADDRESS: "tcp://127.0.0.1:8075"
|
2021-03-11 19:13:27 +05:30
|
|
|
stage: test
|
2021-12-11 22:18:48 +05:30
|
|
|
needs:
|
|
|
|
- setup-test-env
|
2022-10-11 01:57:18 +05:30
|
|
|
before_script:
|
2021-03-11 19:13:27 +05:30
|
|
|
- go version
|
|
|
|
- apt-get update && apt-get -y install libimage-exiftool-perl
|
2021-12-11 22:18:48 +05:30
|
|
|
- scripts/gitaly-test-build
|
2022-10-11 01:57:18 +05:30
|
|
|
script:
|
2021-03-11 19:13:27 +05:30
|
|
|
- make -C workhorse test
|
|
|
|
|
2022-10-11 01:57:18 +05:30
|
|
|
workhorse:test go:
|
2021-11-11 11:23:49 +05:30
|
|
|
extends: .workhorse:test
|
2022-10-11 01:57:18 +05:30
|
|
|
parallel:
|
|
|
|
matrix:
|
2022-11-25 23:54:43 +05:30
|
|
|
- GO_VERSION: ["1.17", "1.18", "1.19"]
|
2022-10-11 01:57:18 +05:30
|
|
|
script:
|
|
|
|
- make -C workhorse test-coverage
|
|
|
|
coverage: '/\d+.\d+%/'
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- workhorse/coverage.html
|
2022-08-13 15:12:31 +05:30
|
|
|
|
2022-10-11 01:57:18 +05:30
|
|
|
workhorse:test fips:
|
2022-08-13 15:12:31 +05:30
|
|
|
extends: .workhorse:test
|
|
|
|
variables:
|
|
|
|
WORKHORSE_TEST_FIPS_ENABLED: 1
|
2022-10-11 01:57:18 +05:30
|
|
|
|
|
|
|
workhorse:test race:
|
|
|
|
extends: .workhorse:test
|
|
|
|
script:
|
|
|
|
- make -C workhorse test-race
|