Skip to content

Commit 6bfc3d7

Browse files
committed
Merge branch 'ps/ci-gitlab-update' into jch
* ps/ci-gitlab-update: ci/lib: fix "CI setup" sections with GitLab CI ci/lib: use echo instead of printf to set up sections ci/lib: remove duplicate trap to end "CI setup" group gitlab-ci: update macOS images to Sonoma
2 parents 5aa4a8c + 596c7af commit 6bfc3d7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ test:osx:
9999
parallel:
100100
matrix:
101101
- jobname: osx-clang
102-
image: macos-13-xcode-14
102+
image: macos-14-xcode-15
103103
CC: clang
104104
- jobname: osx-reftable
105-
image: macos-13-xcode-14
105+
image: macos-14-xcode-15
106106
CC: clang
107107
artifacts:
108108
paths:

ci/lib.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ elif test true = "$GITLAB_CI"
1818
then
1919
begin_group () {
2020
need_to_end_group=t
21-
printf "\e[0Ksection_start:$(date +%s):$(echo "$1" | tr ' ' _)[collapsed=true]\r\e[0K$1\n"
21+
echo "\e[0Ksection_start:$(date +%s):$(echo "$1" | tr ' ' _)[collapsed=true]\r\e[0K$1"
2222
trap "end_group '$1'" EXIT
2323
set -x
2424
}
@@ -27,7 +27,7 @@ then
2727
test -n "$need_to_end_group" || return 0
2828
set +x
2929
need_to_end_group=
30-
printf "\e[0Ksection_end:$(date +%s):$(echo "$1" | tr ' ' _)\r\e[0K\n"
30+
echo "\e[0Ksection_end:$(date +%s):$(echo "$1" | tr ' ' _)\r\e[0K"
3131
trap - EXIT
3232
}
3333
else
@@ -55,8 +55,7 @@ group () {
5555
return $res
5656
}
5757

58-
begin_group "CI setup"
59-
trap "end_group 'CI setup'" EXIT
58+
begin_group "CI setup via $(basename $0)"
6059

6160
# Set 'exit on error' for all CI scripts to let the caller know that
6261
# something went wrong.
@@ -394,5 +393,5 @@ esac
394393

395394
MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"
396395

397-
end_group "CI setup"
396+
end_group "CI setup via $(basename $0)"
398397
set -x

0 commit comments

Comments
 (0)