summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-04-08 14:01:34 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-04-29 15:18:02 (GMT)
commit0866b9253bcb270b1bb737ce1fee3a4c8111969e (patch)
tree39e6b3ed6aea8c07a1b3a619125be3dd5e84becb /.gitlab-ci.yml
parent0a5bcf97b9e0a7ac9c2bca0f92f6740a85ee3fdf (diff)
downloadCMake-0866b9253bcb270b1bb737ce1fee3a4c8111969e.zip
CMake-0866b9253bcb270b1bb737ce1fee3a4c8111969e.tar.gz
CMake-0866b9253bcb270b1bb737ce1fee3a4c8111969e.tar.bz2
gitlab-ci: add initial clang-tidy build
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml65
1 files changed, 65 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..c15c794
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,65 @@
+.only_settings: &only_settings
+ - merge_requests
+ - branches@cmake/cmake
+ - tags@cmake/cmake
+
+.fedora31: &fedora31
+ image: "kitware/cmake:ci-fedora31-x86_64-2020-04-27"
+
+ variables:
+ GIT_CLONE_PATH: "$CI_BUILDS_DIR/gitlab-kitware-cmake ci"
+
+.fedora31_tidy: &fedora31_tidy
+ extends: .fedora31
+
+ variables:
+ CMAKE_CONFIGURATION: fedora31_tidy
+ CTEST_NO_WARNINGS_ALLOWED: 1
+
+before_script:
+ - .gitlab/ci/cmake.sh
+ - .gitlab/ci/ninja.sh
+ - export PATH=$PWD/.gitlab:$PWD/.gitlab/cmake/bin:$PATH
+ - cmake --version
+ - ninja --version
+
+.cmake_build_unix: &cmake_build_unix
+ stage: build
+ only: *only_settings
+ tags:
+ - build
+ - docker
+ - linux
+
+ script:
+ - .gitlab/ci/sccache.sh
+ - sccache --start-server
+ - sccache --show-stats
+ - "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_configure.cmake"
+ - "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_build.cmake"
+ - sccache --show-stats
+
+ interruptible: true
+
+stages:
+ - build
+ - test
+
+build:fedora31-tidy:
+ <<:
+ - *fedora31_tidy
+ stage: build
+ only: *only_settings
+ tags:
+ - build
+ - docker
+ - linux
+
+ script:
+ - .gitlab/ci/sccache.sh
+ - sccache --start-server
+ - sccache --show-stats
+ - "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_configure.cmake"
+ - "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_build.cmake"
+ - sccache --show-stats
+ interruptible: true