annotate .cirrus.yml @ 32730:078630443def v9.0.1685

patch 9.0.1685: silence Python 3.11 depreciations for gcc Commit: https://github.com/vim/vim/commit/422b9dcbfadcd5c1dfad982f9782563915398430 Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Fri Aug 11 22:38:48 2023 +0200 patch 9.0.1685: silence Python 3.11 depreciations for gcc Problem: Python 3.11 interface throws deprecation warnings Solution: ignore those warnings for gcc and clang Python 3.11 deprecation warnings are already silenced for clang using the pragma ``` # pragma clang diagnostic ignored "-Wdeprecated-declarations" ``` However those warnings are also emitted when using gcc. To avoid them for both compilers, change use the __GNUC__ ifdef, which is defined for gcc as well as clang. Additionally, instead of using the "clang diagnostic ignored" pragma, let's make use of 'GCC diagnostic ignored' which is again supported by clang and GCC closes: #12610 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Philip H <47042125+pheiduck@users.noreply.github.com>
author Christian Brabandt <cb@256bit.org>
date Fri, 11 Aug 2023 23:00:03 +0200
parents e87f89061076
children 3046c7ce2469
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18728
9f1cf1458708 patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents: 18722
diff changeset
1 env:
18736
97d534e17874 patch 8.1.2358: tests fail on Cirrus CI for FreeBSD
Bram Moolenaar <Bram@vim.org>
parents: 18728
diff changeset
2 CIRRUS_CLONE_DEPTH: 3
18728
9f1cf1458708 patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents: 18722
diff changeset
3 FEATURES: huge
9f1cf1458708 patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents: 18722
diff changeset
4
28729
1bd1bfc64a47 patch 8.2.4889: CI only tests with FreeBSD 12
Bram Moolenaar <Bram@vim.org>
parents: 28658
diff changeset
5 freebsd_task:
1bd1bfc64a47 patch 8.2.4889: CI only tests with FreeBSD 12
Bram Moolenaar <Bram@vim.org>
parents: 28658
diff changeset
6 name: FreeBSD
1bd1bfc64a47 patch 8.2.4889: CI only tests with FreeBSD 12
Bram Moolenaar <Bram@vim.org>
parents: 28658
diff changeset
7 matrix:
1bd1bfc64a47 patch 8.2.4889: CI only tests with FreeBSD 12
Bram Moolenaar <Bram@vim.org>
parents: 28658
diff changeset
8 - name: FreeBSD 13.1
1bd1bfc64a47 patch 8.2.4889: CI only tests with FreeBSD 12
Bram Moolenaar <Bram@vim.org>
parents: 28658
diff changeset
9 freebsd_instance:
1bd1bfc64a47 patch 8.2.4889: CI only tests with FreeBSD 12
Bram Moolenaar <Bram@vim.org>
parents: 28658
diff changeset
10 image_family: freebsd-13-1
31381
d81e09faf28e patch 9.0.1024: CI doesn't use the latest FreeBSD version
Bram Moolenaar <Bram@vim.org>
parents: 30683
diff changeset
11 - name: FreeBSD 12.4
28729
1bd1bfc64a47 patch 8.2.4889: CI only tests with FreeBSD 12
Bram Moolenaar <Bram@vim.org>
parents: 28658
diff changeset
12 freebsd_instance:
31381
d81e09faf28e patch 9.0.1024: CI doesn't use the latest FreeBSD version
Bram Moolenaar <Bram@vim.org>
parents: 30683
diff changeset
13 image_family: freebsd-12-4
23225
b2660a8bbf36 patch 8.2.2158: CI on cirrus times out, coveralls doesn't always run
Bram Moolenaar <Bram@vim.org>
parents: 21580
diff changeset
14 timeout_in: 20m
18722
3bc59131171f Cirrus CI: add a simple CI using BSD
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 install_script:
28658
3a4ed4d1080d patch 8.2.4853: CI with FreeBSD is a bit outdated
Bram Moolenaar <Bram@vim.org>
parents: 23225
diff changeset
16 - pkg update -f
3a4ed4d1080d patch 8.2.4853: CI with FreeBSD is a bit outdated
Bram Moolenaar <Bram@vim.org>
parents: 23225
diff changeset
17 - pkg install -y gettext
18722
3bc59131171f Cirrus CI: add a simple CI using BSD
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 build_script:
18728
9f1cf1458708 patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents: 18722
diff changeset
19 - NPROC=$(getconf _NPROCESSORS_ONLN)
9f1cf1458708 patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents: 18722
diff changeset
20 - ./configure --with-features=${FEATURES}
9f1cf1458708 patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents: 18722
diff changeset
21 - make -j${NPROC}
21580
93dae47699fb patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Bram Moolenaar <Bram@vim.org>
parents: 20299
diff changeset
22 test_script:
18728
9f1cf1458708 patch 8.1.2354: Cirrus CI runs on another repository
Bram Moolenaar <Bram@vim.org>
parents: 18722
diff changeset
23 - src/vim --version
21580
93dae47699fb patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Bram Moolenaar <Bram@vim.org>
parents: 20299
diff changeset
24 # run tests as user "cirrus" instead of root
93dae47699fb patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Bram Moolenaar <Bram@vim.org>
parents: 20299
diff changeset
25 - pw useradd cirrus -m
93dae47699fb patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Bram Moolenaar <Bram@vim.org>
parents: 20299
diff changeset
26 - chown -R cirrus:cirrus .
93dae47699fb patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Bram Moolenaar <Bram@vim.org>
parents: 20299
diff changeset
27 - sudo -u cirrus make test
30489
1e4d93103d01 patch 9.0.0580: no CI running for MacOS on M1
Bram Moolenaar <Bram@vim.org>
parents: 28729
diff changeset
28
1e4d93103d01 patch 9.0.0580: no CI running for MacOS on M1
Bram Moolenaar <Bram@vim.org>
parents: 28729
diff changeset
29 macos_task:
30683
9549234f3f95 patch 9.0.0676: CI on Mac M1 with gcc actually uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30667
diff changeset
30 name: macOS m1
30489
1e4d93103d01 patch 9.0.0580: no CI running for MacOS on M1
Bram Moolenaar <Bram@vim.org>
parents: 28729
diff changeset
31 macos_instance:
1e4d93103d01 patch 9.0.0580: no CI running for MacOS on M1
Bram Moolenaar <Bram@vim.org>
parents: 28729
diff changeset
32 image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
30683
9549234f3f95 patch 9.0.0676: CI on Mac M1 with gcc actually uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30667
diff changeset
33 env:
9549234f3f95 patch 9.0.0676: CI on Mac M1 with gcc actually uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30667
diff changeset
34 # only run with clang, gcc is not real, it is a link to clang
9549234f3f95 patch 9.0.0676: CI on Mac M1 with gcc actually uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30667
diff changeset
35 CC: clang
30489
1e4d93103d01 patch 9.0.0580: no CI running for MacOS on M1
Bram Moolenaar <Bram@vim.org>
parents: 28729
diff changeset
36 timeout_in: 20m
1e4d93103d01 patch 9.0.0580: no CI running for MacOS on M1
Bram Moolenaar <Bram@vim.org>
parents: 28729
diff changeset
37 install_script:
30667
6f76a14e0140 patch 9.0.0668: CI on Mac M1 only uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30521
diff changeset
38 - brew update
32234
e87f89061076 patch 9.0.1448: diff test fails on MacOS 13
Bram Moolenaar <Bram@vim.org>
parents: 31381
diff changeset
39 - brew install gettext libtool diffutils
30667
6f76a14e0140 patch 9.0.0668: CI on Mac M1 only uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30521
diff changeset
40 build_script:
6f76a14e0140 patch 9.0.0668: CI on Mac M1 only uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30521
diff changeset
41 - NPROC=$(getconf _NPROCESSORS_ONLN)
6f76a14e0140 patch 9.0.0668: CI on Mac M1 only uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30521
diff changeset
42 - ./configure --with-features=${FEATURES}
6f76a14e0140 patch 9.0.0668: CI on Mac M1 only uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30521
diff changeset
43 - make -j${NPROC}
6f76a14e0140 patch 9.0.0668: CI on Mac M1 only uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30521
diff changeset
44 test_script:
6f76a14e0140 patch 9.0.0668: CI on Mac M1 only uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30521
diff changeset
45 - src/vim --version
6f76a14e0140 patch 9.0.0668: CI on Mac M1 only uses clang
Bram Moolenaar <Bram@vim.org>
parents: 30521
diff changeset
46 - make test