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