summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-11-13 14:46:40 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-11-13 14:46:40 (GMT)
commit3d1183c457bc023a999a2140a93701c503e1ddc4 (patch)
treeda91b28b158fc45b4c031d14356a6a5dee5e81b5
parent9279d1fc0b031bb22fbb2234e5d083157f2764fc (diff)
parent6e35919e15b350c771afe8e9dc2a510dc4300e02 (diff)
downloadCMake-3d1183c457bc023a999a2140a93701c503e1ddc4.zip
CMake-3d1183c457bc023a999a2140a93701c503e1ddc4.tar.gz
CMake-3d1183c457bc023a999a2140a93701c503e1ddc4.tar.bz2
Merge branch 'ci-fedora33-release' into ci-fedora33
* ci-fedora33-release: gitlab-ci: use Fedora 33 to build sources gitlab-ci: update Linux CI to use Fedora 33 ci: update to Fedora 33 for Linux builds ci: install gmock in the Fedora 31 image Tests/FindBoost/TestPython: support finding 3.8 and 3.9 clang-tidy: ignore new warnings from newer versions clang-tidy: ignore `misc-no-recursion`
-rw-r--r--.clang-tidy12
-rw-r--r--.gitlab-ci.yml34
-rw-r--r--.gitlab/ci/configure_fedora31_tidy.cmake3
-rw-r--r--.gitlab/ci/configure_fedora33_common.cmake (renamed from .gitlab/ci/configure_fedora31_common.cmake)0
-rw-r--r--.gitlab/ci/configure_fedora33_makefiles.cmake (renamed from .gitlab/ci/configure_fedora31_makefiles.cmake)0
-rw-r--r--.gitlab/ci/configure_fedora33_ninja.cmake (renamed from .gitlab/ci/configure_fedora31_ninja.cmake)2
-rw-r--r--.gitlab/ci/configure_fedora33_ninja_multi.cmake (renamed from .gitlab/ci/configure_fedora31_ninja_multi.cmake)0
-rw-r--r--.gitlab/ci/configure_fedora33_sphinx.cmake (renamed from .gitlab/ci/configure_fedora31_sphinx.cmake)0
-rw-r--r--.gitlab/ci/configure_fedora33_sphinx_package.cmake (renamed from .gitlab/ci/configure_fedora31_sphinx_package.cmake)0
-rw-r--r--.gitlab/ci/configure_fedora33_tidy.cmake3
-rw-r--r--.gitlab/ci/docker/fedora33/Dockerfile (renamed from .gitlab/ci/docker/fedora31/Dockerfile)4
-rwxr-xr-x.gitlab/ci/docker/fedora33/install_deps.sh (renamed from .gitlab/ci/docker/fedora31/install_deps.sh)0
-rwxr-xr-x.gitlab/ci/docker/fedora33/install_ispc.sh (renamed from .gitlab/ci/docker/fedora31/install_ispc.sh)0
-rwxr-xr-x.gitlab/ci/docker/fedora33/install_rvm.sh (renamed from .gitlab/ci/docker/fedora31/install_rvm.sh)3
-rw-r--r--.gitlab/ci/env_fedora33_makefiles.cmake (renamed from .gitlab/ci/env_fedora31_makefiles.cmake)0
-rw-r--r--.gitlab/os-linux.yml42
-rw-r--r--Tests/FindBoost/TestPython/CMakeLists.txt4
17 files changed, 61 insertions, 46 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 10819ef..11e1726 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -4,9 +4,13 @@ bugprone-*,\
-bugprone-macro-parentheses,\
-bugprone-misplaced-widening-cast,\
-bugprone-narrowing-conversions,\
+-bugprone-reserved-identifier,\
+-bugprone-signed-char-misuse,\
+-bugprone-suspicious-include,\
-bugprone-too-small-loop-variable,\
google-readability-casting,\
misc-*,\
+-misc-no-recursion,\
-misc-non-private-member-variables-in-classes,\
-misc-static-assert,\
modernize-*,\
@@ -16,6 +20,8 @@ modernize-*,\
-modernize-use-trailing-return-type,\
-modernize-use-transparent-functors,\
performance-*,\
+-performance-no-automatic-move,\
+-performance-trivially-destructible,\
readability-*,\
-readability-convert-member-functions-to-static,\
-readability-function-size,\
@@ -23,9 +29,15 @@ readability-*,\
-readability-implicit-bool-conversion,\
-readability-inconsistent-declaration-parameter-name,\
-readability-magic-numbers,\
+-readability-make-member-function-const,\
-readability-named-parameter,\
+-readability-qualified-auto,\
+-readability-redundant-access-specifiers,\
-readability-redundant-declaration,\
+-readability-redundant-string-init,\
+-readability-simplify-boolean-expr,\
-readability-uppercase-literal-suffix,\
+-readability-use-anyofallof,\
"
HeaderFilterRegex: 'Source/cm[^/]*\.(h|hxx|cxx)$'
CheckOptions:
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1a94a3d..626071a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -46,7 +46,7 @@ prep:source-package:
prep:doc-package:
extends:
- - .fedora31_sphinx_package
+ - .fedora33_sphinx_package
- .cmake_prep_doc_linux
- .linux_builder_tags_qt
- .cmake_doc_artifacts
@@ -72,16 +72,16 @@ build:debian10-iwyu:
- .linux_builder_tags
- .run_automatically
-build:fedora31-tidy:
+build:fedora33-tidy:
extends:
- - .fedora31_tidy
+ - .fedora33_tidy
- .cmake_build_linux
- .linux_builder_tags_qt
- .run_automatically
-build:fedora31-sphinx:
+build:fedora33-sphinx:
extends:
- - .fedora31_sphinx
+ - .fedora33_sphinx
- .cmake_build_linux
- .linux_builder_tags_qt
- .run_automatically
@@ -110,9 +110,9 @@ test:debian10-ninja:
needs:
- build:centos6-release
-test:fedora31-makefiles:
+test:fedora33-makefiles:
extends:
- - .fedora31_makefiles
+ - .fedora33_makefiles
- .cmake_test_linux_package
- .linux_builder_tags_qt
- .run_dependent
@@ -132,36 +132,36 @@ test:cuda10.2-nvidia:
needs:
- build:centos6-release
-build:fedora31-ninja:
+build:fedora33-ninja:
extends:
- - .fedora31_ninja
+ - .fedora33_ninja
- .cmake_build_linux
- .cmake_build_artifacts
- .linux_builder_tags_qt
- .run_manually
-test:fedora31-ninja:
+test:fedora33-ninja:
extends:
- - .fedora31_ninja
+ - .fedora33_ninja
- .cmake_test_linux
- .linux_builder_tags_x11
- .cmake_test_artifacts
- .run_dependent
dependencies:
- - build:fedora31-ninja
+ - build:fedora33-ninja
needs:
- - build:fedora31-ninja
+ - build:fedora33-ninja
-test:fedora31-ninja-multi:
+test:fedora33-ninja-multi:
extends:
- - .fedora31_ninja_multi
+ - .fedora33_ninja_multi
- .cmake_test_linux_external
- .linux_builder_tags_qt
- .run_dependent
dependencies:
- - test:fedora31-ninja
+ - test:fedora33-ninja
needs:
- - test:fedora31-ninja
+ - test:fedora33-ninja
build:linux-x86_64-package:
extends:
diff --git a/.gitlab/ci/configure_fedora31_tidy.cmake b/.gitlab/ci/configure_fedora31_tidy.cmake
deleted file mode 100644
index 55d022c..0000000
--- a/.gitlab/ci/configure_fedora31_tidy.cmake
+++ /dev/null
@@ -1,3 +0,0 @@
-set(CMake_RUN_CLANG_TIDY ON CACHE BOOL "")
-
-include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora31_common.cmake")
diff --git a/.gitlab/ci/configure_fedora31_common.cmake b/.gitlab/ci/configure_fedora33_common.cmake
index c343833..c343833 100644
--- a/.gitlab/ci/configure_fedora31_common.cmake
+++ b/.gitlab/ci/configure_fedora33_common.cmake
diff --git a/.gitlab/ci/configure_fedora31_makefiles.cmake b/.gitlab/ci/configure_fedora33_makefiles.cmake
index db2d005..db2d005 100644
--- a/.gitlab/ci/configure_fedora31_makefiles.cmake
+++ b/.gitlab/ci/configure_fedora33_makefiles.cmake
diff --git a/.gitlab/ci/configure_fedora31_ninja.cmake b/.gitlab/ci/configure_fedora33_ninja.cmake
index ea429c1..883f425 100644
--- a/.gitlab/ci/configure_fedora31_ninja.cmake
+++ b/.gitlab/ci/configure_fedora33_ninja.cmake
@@ -4,4 +4,4 @@ set(CMake_TEST_GUI "ON" CACHE BOOL "")
# Cover compilation with C++11 only and not higher standards.
set(CMAKE_CXX_STANDARD "11" CACHE STRING "")
-include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora31_common.cmake")
+include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora33_common.cmake")
diff --git a/.gitlab/ci/configure_fedora31_ninja_multi.cmake b/.gitlab/ci/configure_fedora33_ninja_multi.cmake
index efb4b84..efb4b84 100644
--- a/.gitlab/ci/configure_fedora31_ninja_multi.cmake
+++ b/.gitlab/ci/configure_fedora33_ninja_multi.cmake
diff --git a/.gitlab/ci/configure_fedora31_sphinx.cmake b/.gitlab/ci/configure_fedora33_sphinx.cmake
index 90d159b..90d159b 100644
--- a/.gitlab/ci/configure_fedora31_sphinx.cmake
+++ b/.gitlab/ci/configure_fedora33_sphinx.cmake
diff --git a/.gitlab/ci/configure_fedora31_sphinx_package.cmake b/.gitlab/ci/configure_fedora33_sphinx_package.cmake
index e839de8..e839de8 100644
--- a/.gitlab/ci/configure_fedora31_sphinx_package.cmake
+++ b/.gitlab/ci/configure_fedora33_sphinx_package.cmake
diff --git a/.gitlab/ci/configure_fedora33_tidy.cmake b/.gitlab/ci/configure_fedora33_tidy.cmake
new file mode 100644
index 0000000..9052fdc
--- /dev/null
+++ b/.gitlab/ci/configure_fedora33_tidy.cmake
@@ -0,0 +1,3 @@
+set(CMake_RUN_CLANG_TIDY ON CACHE BOOL "")
+
+include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora33_common.cmake")
diff --git a/.gitlab/ci/docker/fedora31/Dockerfile b/.gitlab/ci/docker/fedora33/Dockerfile
index 80ab379..8ebcb9e 100644
--- a/.gitlab/ci/docker/fedora31/Dockerfile
+++ b/.gitlab/ci/docker/fedora33/Dockerfile
@@ -1,10 +1,10 @@
-FROM fedora:31 as rvm-build
+FROM fedora:33 as rvm-build
MAINTAINER Ben Boeckel <ben.boeckel@kitware.com>
COPY install_rvm.sh /root/install_rvm.sh
RUN sh /root/install_rvm.sh
-FROM fedora:31
+FROM fedora:33
MAINTAINER Ben Boeckel <ben.boeckel@kitware.com>
COPY install_deps.sh /root/install_deps.sh
diff --git a/.gitlab/ci/docker/fedora31/install_deps.sh b/.gitlab/ci/docker/fedora33/install_deps.sh
index c1391e3..c1391e3 100755
--- a/.gitlab/ci/docker/fedora31/install_deps.sh
+++ b/.gitlab/ci/docker/fedora33/install_deps.sh
diff --git a/.gitlab/ci/docker/fedora31/install_ispc.sh b/.gitlab/ci/docker/fedora33/install_ispc.sh
index fdc14b5..fdc14b5 100755
--- a/.gitlab/ci/docker/fedora31/install_ispc.sh
+++ b/.gitlab/ci/docker/fedora33/install_ispc.sh
diff --git a/.gitlab/ci/docker/fedora31/install_rvm.sh b/.gitlab/ci/docker/fedora33/install_rvm.sh
index 2332ab7..6d4fa97 100755
--- a/.gitlab/ci/docker/fedora31/install_rvm.sh
+++ b/.gitlab/ci/docker/fedora33/install_rvm.sh
@@ -13,6 +13,9 @@ dnf install --setopt=install_weak_deps=False -y \
curl -sSL https://get.rvm.io | bash -s stable
+# This is intentionally an older version.
+# If updating, the associated `env_fedora*_makefiles.cmake` file needs updated
+# as well.
/usr/local/rvm/bin/rvm install ruby-2.7.0
tar -C /usr/local -cf /root/rvm.tar rvm
diff --git a/.gitlab/ci/env_fedora31_makefiles.cmake b/.gitlab/ci/env_fedora33_makefiles.cmake
index 1d0efa7..1d0efa7 100644
--- a/.gitlab/ci/env_fedora31_makefiles.cmake
+++ b/.gitlab/ci/env_fedora33_makefiles.cmake
diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml
index bab4f5a..6684d71 100644
--- a/.gitlab/os-linux.yml
+++ b/.gitlab/os-linux.yml
@@ -12,7 +12,7 @@
LAUNCHER: "scl enable devtoolset-6 rh-python36 --"
.linux_prep_source:
- image: "fedora:32"
+ image: "fedora:33"
variables:
GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci"
@@ -48,36 +48,36 @@
### Fedora
-.fedora31:
- image: "kitware/cmake:ci-fedora31-x86_64-2020-10-22"
+.fedora33:
+ image: "kitware/cmake:ci-fedora33-x86_64-2020-11-13"
variables:
GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci/long file name for testing purposes"
#### Lint builds
-.fedora31_tidy:
- extends: .fedora31
+.fedora33_tidy:
+ extends: .fedora33
variables:
- CMAKE_CONFIGURATION: fedora31_tidy
+ CMAKE_CONFIGURATION: fedora33_tidy
CTEST_NO_WARNINGS_ALLOWED: 1
CMake_SKIP_INSTALL: 1
-.fedora31_sphinx:
- extends: .fedora31
+.fedora33_sphinx:
+ extends: .fedora33
variables:
- CMAKE_CONFIGURATION: fedora31_sphinx
+ CMAKE_CONFIGURATION: fedora33_sphinx
CTEST_NO_WARNINGS_ALLOWED: 1
CTEST_SOURCE_SUBDIRECTORY: "Utilities/Sphinx"
CMake_SKIP_INSTALL: 1
-.fedora31_sphinx_package:
- extends: .fedora31
+.fedora33_sphinx_package:
+ extends: .fedora33
variables:
- CMAKE_CONFIGURATION: fedora31_sphinx_package
+ CMAKE_CONFIGURATION: fedora33_sphinx_package
CTEST_SOURCE_SUBDIRECTORY: "Utilities/Sphinx"
#### Build and test
@@ -89,26 +89,26 @@
CMAKE_CONFIGURATION: debian10_ninja
CTEST_NO_WARNINGS_ALLOWED: 1
-.fedora31_ninja:
- extends: .fedora31
+.fedora33_ninja:
+ extends: .fedora33
variables:
- CMAKE_CONFIGURATION: fedora31_ninja
+ CMAKE_CONFIGURATION: fedora33_ninja
CTEST_NO_WARNINGS_ALLOWED: 1
-.fedora31_ninja_multi:
- extends: .fedora31
+.fedora33_ninja_multi:
+ extends: .fedora33
variables:
- CMAKE_CONFIGURATION: fedora31_ninja_multi
+ CMAKE_CONFIGURATION: fedora33_ninja_multi
CTEST_NO_WARNINGS_ALLOWED: 1
CMAKE_GENERATOR: "Ninja Multi-Config"
-.fedora31_makefiles:
- extends: .fedora31
+.fedora33_makefiles:
+ extends: .fedora33
variables:
- CMAKE_CONFIGURATION: fedora31_makefiles
+ CMAKE_CONFIGURATION: fedora33_makefiles
CTEST_NO_WARNINGS_ALLOWED: 1
CMAKE_GENERATOR: "Unix Makefiles"
diff --git a/Tests/FindBoost/TestPython/CMakeLists.txt b/Tests/FindBoost/TestPython/CMakeLists.txt
index 4d137ca..6d292cd 100644
--- a/Tests/FindBoost/TestPython/CMakeLists.txt
+++ b/Tests/FindBoost/TestPython/CMakeLists.txt
@@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.14)
project(TestFindBoostPython CXX)
include(CTest)
-find_package(Boost OPTIONAL_COMPONENTS python27 python34 python35 python36 python37)
+find_package(Boost OPTIONAL_COMPONENTS python27 python34 python35 python36 python37 python38 python39)
set(FAILTEST TRUE)
-foreach (v IN ITEMS 27 34 35 36 37)
+foreach (v IN ITEMS 27 34 35 36 37 38 39)
if (Boost_PYTHON${v}_FOUND)
set(FAILTEST FALSE)
break()