Update .gitlab-ci.yml to use anchors for all VisualStudio jobs and the linux tags.
* reduces filesizes and improves maintainability
This commit is contained in:
404
.gitlab-ci.yml
404
.gitlab-ci.yml
@@ -1,22 +1,120 @@
|
|||||||
gcc-c++11:
|
### Templates for common job definitions ###
|
||||||
script: "CI/ci-linux.sh gcc C++11"
|
.LINUX_TAG: &LINUX_TAG
|
||||||
tags:
|
tags:
|
||||||
- Linux
|
- Linux
|
||||||
|
|
||||||
|
### VS2017 ###
|
||||||
|
|
||||||
|
.VS2017_64_TEMPLATE: &VS2017_x64
|
||||||
|
variables:
|
||||||
|
BUILD_PLATFORM: "VS2017"
|
||||||
|
ARCHITECTURE: "x64"
|
||||||
|
script: "CI\\Windows.bat"
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build-release/*.exe
|
||||||
|
tags:
|
||||||
|
- VS2017
|
||||||
|
- Qt5101
|
||||||
|
|
||||||
|
.VS2017_32_TEMPLATE: &VS2017_x32
|
||||||
|
variables:
|
||||||
|
BUILD_PLATFORM: "VS2017"
|
||||||
|
ARCHITECTURE: "x32"
|
||||||
|
script: "CI\\Windows.bat"
|
||||||
|
tags:
|
||||||
|
- VS2017
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build-release/*.exe
|
||||||
|
|
||||||
|
### VS2015 ###
|
||||||
|
|
||||||
|
.VS2015_64_TEMPLATE: &VS2015_x64
|
||||||
|
variables:
|
||||||
|
BUILD_PLATFORM: "VS2015"
|
||||||
|
ARCHITECTURE: "x64"
|
||||||
|
script: "CI\\Windows.bat"
|
||||||
|
tags:
|
||||||
|
- VS2015
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build-release/*.exe
|
||||||
|
|
||||||
|
.VS2015_32_TEMPLATE: &VS2015_x32
|
||||||
|
variables:
|
||||||
|
BUILD_PLATFORM: "VS2015"
|
||||||
|
ARCHITECTURE: "x32"
|
||||||
|
script: "CI\\Windows.bat"
|
||||||
|
tags:
|
||||||
|
- VS2015
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build-release/*.exe
|
||||||
|
|
||||||
|
### VS2013 ###
|
||||||
|
|
||||||
|
.VS2013_64_TEMPLATE: &VS2013_x64
|
||||||
|
variables:
|
||||||
|
BUILD_PLATFORM: "VS2013"
|
||||||
|
ARCHITECTURE: "x64"
|
||||||
|
script: "CI\\Windows.bat"
|
||||||
|
tags:
|
||||||
|
- VS2013
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build-release/*.exe
|
||||||
|
|
||||||
|
.VS2013_32_TEMPLATE: &VS2013_x32
|
||||||
|
variables:
|
||||||
|
BUILD_PLATFORM: "VS2013"
|
||||||
|
ARCHITECTURE: "x32"
|
||||||
|
script: "CI\\Windows.bat"
|
||||||
|
tags:
|
||||||
|
- VS2013
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build-release/*.exe
|
||||||
|
|
||||||
|
### Linker and App configurations for VS ###
|
||||||
|
|
||||||
|
.STATIC_NO_APPS: &STATIC_NO_APPS
|
||||||
|
variables:
|
||||||
|
SHARED: "FALSE"
|
||||||
|
APPS: "OFF"
|
||||||
|
|
||||||
|
.STATIC_APPS: &STATIC_APPS
|
||||||
|
variables:
|
||||||
|
SHARED: "FLASE"
|
||||||
|
APPS: "ON"
|
||||||
|
|
||||||
|
.SHARED_NO_APPS: &SHARED_NO_APPS
|
||||||
|
variables:
|
||||||
|
SHARED: "TRUE"
|
||||||
|
APPS: "OFF"
|
||||||
|
|
||||||
|
.SHARED_APPS: &SHARED_APPS
|
||||||
|
variables:
|
||||||
|
SHARED: "TRUE"
|
||||||
|
APPS: "ON"
|
||||||
|
|
||||||
|
### actual job definitions ###
|
||||||
|
|
||||||
|
gcc-c++11:
|
||||||
|
script: "CI/ci-linux.sh gcc C++11"
|
||||||
|
<<: *LINUX_TAG
|
||||||
|
|
||||||
clang-c++11:
|
clang-c++11:
|
||||||
script: "CI/ci-linux.sh clang C++11"
|
script: "CI/ci-linux.sh clang C++11"
|
||||||
tags:
|
<<: *LINUX_TAG
|
||||||
- Linux
|
|
||||||
|
|
||||||
gcc-c++14:
|
gcc-c++14:
|
||||||
script: "CI/ci-linux.sh gcc C++14"
|
script: "CI/ci-linux.sh gcc C++14"
|
||||||
tags:
|
<<: *LINUX_TAG
|
||||||
- Linux
|
|
||||||
|
|
||||||
clang-c++14:
|
clang-c++14:
|
||||||
script: "CI/ci-linux.sh clang C++14"
|
script: "CI/ci-linux.sh clang C++14"
|
||||||
tags:
|
<<: *LINUX_TAG
|
||||||
- Linux
|
|
||||||
|
|
||||||
macos-c++11:
|
macos-c++11:
|
||||||
script: "CI/ci-mac.sh C++11"
|
script: "CI/ci-mac.sh C++11"
|
||||||
@@ -44,283 +142,93 @@ cppcheck:
|
|||||||
paths:
|
paths:
|
||||||
- cppcheck.log
|
- cppcheck.log
|
||||||
|
|
||||||
.VS2017_64_TEMPLATE: &VS2017_x64
|
|
||||||
variables:
|
|
||||||
BUILD_PLATFORM: "VS2017"
|
|
||||||
ARCHITECTURE: "x64"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
tags:
|
|
||||||
- VS2017
|
|
||||||
- Qt5101
|
|
||||||
|
|
||||||
VS2017-64-bit-shared-apps:
|
VS2017-64-bit-shared-apps:
|
||||||
variables:
|
variables: *SHARED_APPS
|
||||||
SHARED: "TRUE"
|
|
||||||
APPS: "ON"
|
|
||||||
<<: *VS2017_x64
|
<<: *VS2017_x64
|
||||||
|
|
||||||
|
|
||||||
VS2017-64-bit-static-apps:
|
VS2017-64-bit-static-apps:
|
||||||
variables:
|
variables: *STATIC_APPS
|
||||||
SHARED: "FALSE"
|
|
||||||
APPS: "ON"
|
|
||||||
<<: *VS2017_x64
|
<<: *VS2017_x64
|
||||||
|
|
||||||
|
|
||||||
VS2017-64-bit-shared-no-apps:
|
VS2017-64-bit-shared-no-apps:
|
||||||
variables:
|
variables: *SHARED_NO_APPS
|
||||||
SHARED: "TRUE"
|
|
||||||
APPS: "OFF"
|
|
||||||
<<: *VS2017_x64
|
<<: *VS2017_x64
|
||||||
|
|
||||||
|
|
||||||
VS2017-64-bit-static-no-apps:
|
VS2017-64-bit-static-no-apps:
|
||||||
variables:
|
variables: *STATIC_NO_APPS
|
||||||
SHARED: "FALSE"
|
|
||||||
APPS: "OFF"
|
|
||||||
<<: *VS2017_x64
|
<<: *VS2017_x64
|
||||||
|
|
||||||
|
|
||||||
VS2017-32-bit-shared-no-apps:
|
VS2017-32-bit-shared-no-apps:
|
||||||
variables:
|
variables: *SHARED_NO_APPS
|
||||||
BUILD_PLATFORM: "VS2017"
|
<<: *VS2017_x32
|
||||||
ARCHITECTURE: "x32"
|
|
||||||
SHARED: "TRUE"
|
|
||||||
APPS: "OFF"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2017
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
|
|
||||||
VS2017-32-bit-static-no-apps:
|
VS2017-32-bit-static-no-apps:
|
||||||
variables:
|
variables: *STATIC_NO_APPS
|
||||||
BUILD_PLATFORM: "VS2017"
|
<<: *VS2017_x32
|
||||||
ARCHITECTURE: "x32"
|
|
||||||
SHARED: "FALSE"
|
|
||||||
APPS: "OFF"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2017
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2015-64-bit-shared-apps:
|
VS2015-64-bit-shared-apps:
|
||||||
variables:
|
variables: *SHARED_APPS
|
||||||
BUILD_PLATFORM: "VS2015"
|
<<: *VS2015_x64
|
||||||
ARCHITECTURE: "x64"
|
|
||||||
SHARED: "TRUE"
|
|
||||||
APPS: "ON"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2015
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
|
|
||||||
VS2015-64-bit-shared-no-apps:
|
VS2015-64-bit-shared-no-apps:
|
||||||
variables:
|
variables: *SHARED_NO_APPS
|
||||||
BUILD_PLATFORM: "VS2015"
|
<<: *VS2015_x64
|
||||||
ARCHITECTURE: "x64"
|
|
||||||
SHARED: "TRUE"
|
|
||||||
APPS: "OFF"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2015
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2015-32-bit-shared-apps:
|
|
||||||
variables:
|
|
||||||
BUILD_PLATFORM: "VS2015"
|
|
||||||
ARCHITECTURE: "x32"
|
|
||||||
SHARED: "TRUE"
|
|
||||||
APPS: "ON"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2015
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2015-32-bit-shared-no-apps:
|
|
||||||
variables:
|
|
||||||
BUILD_PLATFORM: "VS2015"
|
|
||||||
ARCHITECTURE: "x32"
|
|
||||||
SHARED: "TRUE"
|
|
||||||
APPS: "OFF"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2015
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2015-64-bit-static-apps:
|
VS2015-64-bit-static-apps:
|
||||||
variables:
|
variables: *STATIC_APPS
|
||||||
BUILD_PLATFORM: "VS2015"
|
<<: *VS2015_x64
|
||||||
ARCHITECTURE: "x64"
|
|
||||||
SHARED: "FALSE"
|
|
||||||
APPS: "ON"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2015
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2015-64-bit-static-no-apps:
|
VS2015-64-bit-static-no-apps:
|
||||||
variables:
|
variables: *STATIC_NO_APPS
|
||||||
BUILD_PLATFORM: "VS2015"
|
<<: *VS2015_x64
|
||||||
ARCHITECTURE: "x64"
|
|
||||||
SHARED: "FALSE"
|
VS2015-32-bit-shared-apps:
|
||||||
APPS: "OFF"
|
variables: *SHARED_APPS
|
||||||
script: "CI\\Windows.bat"
|
<<: *VS2015_x32
|
||||||
tags:
|
|
||||||
- VS2015
|
VS2015-32-bit-shared-no-apps:
|
||||||
artifacts:
|
variables: *SHARED_NO_APPS
|
||||||
paths:
|
<<: *VS2015_x32
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2015-32-bit-static-apps:
|
VS2015-32-bit-static-apps:
|
||||||
variables:
|
variables: *STATIC_APPS
|
||||||
BUILD_PLATFORM: "VS2015"
|
<<: *VS2015_x32
|
||||||
ARCHITECTURE: "x32"
|
|
||||||
SHARED: "FALSE"
|
|
||||||
APPS: "ON"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2015
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2015-32-bit-static-no-apps:
|
VS2015-32-bit-static-no-apps:
|
||||||
variables:
|
variables: *STATIC_NO_APPS
|
||||||
BUILD_PLATFORM: "VS2015"
|
<<: *VS2015_x32
|
||||||
ARCHITECTURE: "x32"
|
|
||||||
SHARED: "FALSE"
|
|
||||||
APPS: "OFF"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2015
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
VS2013-64-bit-shared-apps:
|
VS2013-64-bit-shared-apps:
|
||||||
variables:
|
variables: *SHARED_APPS
|
||||||
BUILD_PLATFORM: "VS2013"
|
<<: *VS2013_x64
|
||||||
ARCHITECTURE: "x64"
|
|
||||||
SHARED: "TRUE"
|
|
||||||
APPS: "ON"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2013
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2013-64-bit-shared-no-apps:
|
VS2013-64-bit-shared-no-apps:
|
||||||
variables:
|
variables: *SHARED_NO_APPS
|
||||||
BUILD_PLATFORM: "VS2013"
|
<<: *VS2013_x64
|
||||||
ARCHITECTURE: "x64"
|
|
||||||
SHARED: "TRUE"
|
|
||||||
APPS: "OFF"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2013
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2013-32-bit-shared-apps:
|
|
||||||
variables:
|
|
||||||
BUILD_PLATFORM: "VS2013"
|
|
||||||
ARCHITECTURE: "x32"
|
|
||||||
SHARED: "TRUE"
|
|
||||||
APPS: "ON"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2013
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2013-32-bit-shared-no-apps:
|
|
||||||
variables:
|
|
||||||
BUILD_PLATFORM: "VS2013"
|
|
||||||
ARCHITECTURE: "x32"
|
|
||||||
SHARED: "TRUE"
|
|
||||||
APPS: "OFF"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2013
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2013-64-bit-static-apps:
|
VS2013-64-bit-static-apps:
|
||||||
variables:
|
variables: *STATIC_APPS
|
||||||
BUILD_PLATFORM: "VS2013"
|
<<: *VS2013_x64
|
||||||
ARCHITECTURE: "x64"
|
|
||||||
SHARED: "FALSE"
|
|
||||||
APPS: "ON"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2013
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2013-64-bit-static-no-apps:
|
VS2013-64-bit-static-no-apps:
|
||||||
variables:
|
variables: *STATIC_NO_APPS
|
||||||
BUILD_PLATFORM: "VS2013"
|
<<: *VS2013_x64
|
||||||
ARCHITECTURE: "x64"
|
|
||||||
SHARED: "FALSE"
|
VS2013-32-bit-shared-apps:
|
||||||
APPS: "OFF"
|
variables: *SHARED_APPS
|
||||||
script: "CI\\Windows.bat"
|
<<: *VS2013_x32
|
||||||
tags:
|
|
||||||
- VS2013
|
VS2013-32-bit-shared-no-apps:
|
||||||
artifacts:
|
variables: *SHARED_NO_APPS
|
||||||
paths:
|
<<: *VS2013_x32
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2013-32-bit-static-apps:
|
VS2013-32-bit-static-apps:
|
||||||
variables:
|
variables: *STATIC_APPS
|
||||||
BUILD_PLATFORM: "VS2013"
|
<<: *VS2013_x32
|
||||||
ARCHITECTURE: "x32"
|
|
||||||
SHARED: "FALSE"
|
|
||||||
APPS: "ON"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2013
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
VS2013-32-bit-static-no-apps:
|
VS2013-32-bit-static-no-apps:
|
||||||
variables:
|
variables: *STATIC_NO_APPS
|
||||||
BUILD_PLATFORM: "VS2013"
|
<<: *VS2013_x32
|
||||||
ARCHITECTURE: "x32"
|
|
||||||
SHARED: "FALSE"
|
|
||||||
APPS: "OFF"
|
|
||||||
script: "CI\\Windows.bat"
|
|
||||||
tags:
|
|
||||||
- VS2013
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- build-release/*.exe
|
|
||||||
|
|
||||||
Doc-publish:
|
Doc-publish:
|
||||||
only:
|
only:
|
||||||
|
|||||||
Reference in New Issue
Block a user