diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-11-09 14:48:12 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-11-30 15:39:53 +0300 |
commit | 4219ac170f6eb246d07e9cf1f5bb7108b1a9f98e (patch) | |
tree | 841fd8e78393988089fc4405286c14f9bc47467f /.gitlab-ci.yml | |
parent | ce657110cc0954b1ff9c02bef1ed82756f7607fd (diff) |
ci: Split up macOS script by lifecycle
The macOS job is currently executing all steps in the `script` part.
Split it up into `before_script`, `script` and `after_script`. While
this is conceptually cleaner, it also means that the `after_script` will
get executed even if `script` fails to analyze tests for any panics.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f29b48bf..a4f5f1a2b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -316,7 +316,7 @@ test:macos: needs: [] stage: test image: macos-12-xcode-14 - script: + before_script: - brew uninstall go - brew install cmake go@${GO_VERSION} # Older Go versions may be keg-only and thus aren't linked into `PATH` by @@ -331,7 +331,9 @@ test:macos: - pg_ctl status - createdb -U $PGUSER $POSTGRES_DB - make -j$(nproc) build prepare-tests + script: - make test-go + after_script: - *test_after_script tags: - shared-macos-amd64 |