This repository has been archived by the owner on Jan 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
/
CI.cmake.in
62 lines (59 loc) · 4.51 KB
/
CI.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#==================================================================================================#
# #
# Copyright 2013 MaidSafe.net limited #
# #
# This MaidSafe Software is licensed to you under (1) the MaidSafe.net Commercial License, #
# version 1.0 or later, or (2) The General Public License (GPL), version 3, depending on which #
# licence you accepted on initial access to the Software (the "Licences"). #
# #
# By contributing code to the MaidSafe Software, or to this project generally, you agree to be #
# bound by the terms of the MaidSafe Contributor Agreement, version 1.0, found in the root #
# directory of this project at LICENSE, COPYING and CONTRIBUTOR respectively and also available #
# at: http://www.maidsafe.net/licenses #
# #
# Unless required by applicable law or agreed to in writing, the MaidSafe Software distributed #
# under the GPL Licence is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF #
# ANY KIND, either express or implied. #
# #
# See the Licences for the specific language governing permissions and limitations relating to #
# use of the MaidSafe Software. #
# #
#==================================================================================================#
# #
# Script used to run Continuous Integration tests on all submodules of MaidSafe. #
# #
@Documentation@#
# #
# By default, all test types other than Experimental run against 'next' branch for the super- #
# project and all submodules. To change them all to run against a different branch, set the #
# variable BRANCH using '-D' command line argument. #
# #
# Example usage: From MaidSafe build dir, run: #
# ctest -S CI_Continuous_Release.cmake #
# ctest -S CI_Nightly_Debug.cmake -DBRANCH=master #
# #
#==================================================================================================#
set(DashboardModel @DashType@)
set(MachineType @MachineType@)
set(TargetPlatform @TargetPlatform@)
set(UsingMsBuild @UsingMsBuild@)
set(CTEST_CONFIGURATION_TYPE @TestConfType@)
set(CTEST_SITE "@ThisSite@")
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@")
set(CMAKE_CXX_COMPILER "@CMAKE_CXX_COMPILER@")
set(CMAKE_CXX_COMPILER_ID "@CMAKE_CXX_COMPILER_ID@")
set(CMAKE_CXX_COMPILER_VERSION "@CMAKE_CXX_COMPILER_VERSION@")
set(CTEST_CMAKE_COMMAND "@CMAKE_COMMAND@")
# If the build tool is "make", CTest invokes this using "make -i" which ignores errors and causes
# failing builds to appear to succeed. Therefore we remove the "-i" arg here.
string(REGEX MATCH "/make$" IsMake "${CMAKE_MAKE_PROGRAM}")
if(IsMake)
set(PathOfMake "${CMAKE_MAKE_PROGRAM}")
endif()
set(CTEST_GIT_COMMAND "@Git_EXECUTABLE@")
set(CTEST_PYTHON_EXECUTABLE "@PYTHON_EXECUTABLE@")
set(CTEST_SOURCE_DIRECTORY "@CMAKE_SOURCE_DIR@")
set(CTEST_BINARY_DIRECTORY "@CMAKE_BINARY_DIR@/build_CI_@DashType@_@TestConfType@")
set(ExtraConfigureArgs "@CMakeArgs@;-DRUNNING_AS_CTEST_SCRIPT=TRUE")
include("@CMAKE_BINARY_DIR@/ContinuousIntegration/run_ci.cmake")