diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-11-30 15:23:26 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-11-30 15:24:45 +0300 |
commit | 3955c3fa0a9e3564baf4fe1eee380f834de5cb36 (patch) | |
tree | f3a5f7b7326156ab73cbacca8adb865e5c0ac3ed /.gitlab-ci.yml | |
parent | a818370993ae6fe9785b5116dac23611eb9361f9 (diff) |
ci: Add job to test with bundled Git binaries
Add a new test job that exercises our ability to use bundled Git
binaries to drive our test suite.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9ff92d543..50bbd235b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -130,6 +130,11 @@ test: # The purpose is to verify that there is no test which writes into those directories anymore, as # they should all instead use a temporary directory for runtime data. - find . -type d \( -path ./_build -o -path ./ruby \) -prune -o -type d -exec chmod a-w {} \; + # If we're testing with bundled Git, then we don't want to have the Git + # installation around. Otherwise, Git would be able to resolve its binaries + # by just looking at its own GIT_PREFIX and then pick binaries from that + # installation directory. + - if test -n "${WITH_BUNDLED_GIT}"; then rm -r _build/deps/git/install; fi - make ${TARGET} parallel: matrix: @@ -142,6 +147,8 @@ test: - GO_VERSION: [ "1.16", "1.17" ] TARGET: test - TARGET: [ test-with-proxies, test-with-praefect, race-go ] + - WITH_BUNDLED_GIT: "with-bundled-git" + TARGET: test # Execute tests with our minimum required Postgres version, as well. If # the minimum version changes, please change this to the new minimum # version. Furthermore, please make sure to update the minimum required |