mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Add nightly build pipeline
This commit is contained in:
parent
951ed1b739
commit
eec2a28c38
|
@ -50,10 +50,6 @@ EndIf()
|
||||||
|
|
||||||
Ctest_Start($ENV{ctest_model})
|
Ctest_Start($ENV{ctest_model})
|
||||||
|
|
||||||
If(NOT $ENV{ctest_model} MATCHES Experimental)
|
|
||||||
Ctest_Update(SOURCE "${CTEST_SOURCE_DIRECTORY}")
|
|
||||||
EndIf()
|
|
||||||
|
|
||||||
Ctest_Configure(BUILD "${CTEST_BINARY_DIRECTORY}"
|
Ctest_Configure(BUILD "${CTEST_BINARY_DIRECTORY}"
|
||||||
OPTIONS "${configure_options}"
|
OPTIONS "${configure_options}"
|
||||||
)
|
)
|
||||||
|
|
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -39,7 +39,7 @@ pipeline{
|
||||||
parallel(buildMatrix([
|
parallel(buildMatrix([
|
||||||
[os: 'Debian8', arch: 'x86_64', compiler: 'gcc4.9', fairsoft: 'apr18'],
|
[os: 'Debian8', arch: 'x86_64', compiler: 'gcc4.9', fairsoft: 'apr18'],
|
||||||
[os: 'MacOS10.11', arch: 'x86_64', compiler: 'AppleLLVM8.0.0', fairsoft: 'apr18'],
|
[os: 'MacOS10.11', arch: 'x86_64', compiler: 'AppleLLVM8.0.0', fairsoft: 'apr18'],
|
||||||
// [os: 'MacOS10.13', arch: 'x86_64', compiler: 'AppleLLVM9.0.0', fairsoft: 'oct17'],
|
[os: 'MacOS10.13', arch: 'x86_64', compiler: 'AppleLLVM9.0.0', fairsoft: 'apr18'],
|
||||||
]) { spec, label ->
|
]) { spec, label ->
|
||||||
sh '''\
|
sh '''\
|
||||||
echo "export BUILDDIR=$PWD/build" >> Dart.cfg
|
echo "export BUILDDIR=$PWD/build" >> Dart.cfg
|
||||||
|
|
55
Jenkinsfile.nightly
Normal file
55
Jenkinsfile.nightly
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
#!groovy
|
||||||
|
|
||||||
|
def specToLabel(Map spec) {
|
||||||
|
return "${spec.os}-${spec.arch}-${spec.compiler}-FairSoft_${spec.fairsoft}"
|
||||||
|
}
|
||||||
|
|
||||||
|
def buildMatrix(List specs, Closure callback) {
|
||||||
|
def nodes = [:]
|
||||||
|
for (spec in specs) {
|
||||||
|
def label = specToLabel(spec)
|
||||||
|
nodes[label] = {
|
||||||
|
node(label) {
|
||||||
|
try {
|
||||||
|
deleteDir()
|
||||||
|
checkout scm
|
||||||
|
|
||||||
|
callback.call(spec, label)
|
||||||
|
|
||||||
|
deleteDir()
|
||||||
|
} catch (e) {
|
||||||
|
deleteDir()
|
||||||
|
throw e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nodes
|
||||||
|
}
|
||||||
|
|
||||||
|
pipeline{
|
||||||
|
agent none
|
||||||
|
triggers { cron('H 2 * * *') }
|
||||||
|
stages {
|
||||||
|
stage("Run Nightly Build/Test Matrix") {
|
||||||
|
steps{
|
||||||
|
script {
|
||||||
|
parallel(buildMatrix([
|
||||||
|
[os: 'Debian8', arch: 'x86_64', compiler: 'gcc4.9', fairsoft: 'apr18'],
|
||||||
|
[os: 'MacOS10.11', arch: 'x86_64', compiler: 'AppleLLVM8.0.0', fairsoft: 'apr18'],
|
||||||
|
[os: 'MacOS10.13', arch: 'x86_64', compiler: 'AppleLLVM9.0.0', fairsoft: 'apr18'],
|
||||||
|
]) { spec, label ->
|
||||||
|
sh '''\
|
||||||
|
echo "export BUILDDIR=$PWD/build" >> Dart.cfg
|
||||||
|
echo "export SOURCEDIR=$PWD" >> Dart.cfg
|
||||||
|
echo "export PATH=$SIMPATH/bin:$PATH" >> Dart.cfg
|
||||||
|
echo "export GIT_BRANCH=dev" >> Dart.cfg
|
||||||
|
'''
|
||||||
|
sh './Dart.sh Nightly Dart.cfg'
|
||||||
|
sh './Dart.sh Profile Dart.cfg'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -157,6 +157,10 @@ macro(set_fairmq_defaults)
|
||||||
|
|
||||||
# Define export set, only one for now
|
# Define export set, only one for now
|
||||||
set(PROJECT_EXPORT_SET ${PROJECT_NAME}Targets)
|
set(PROJECT_EXPORT_SET ${PROJECT_NAME}Targets)
|
||||||
|
|
||||||
|
# Override CMake defaults
|
||||||
|
set(CMAKE_CXX_FLAGS_NIGHTLY "-O2 -g -Wshadow -Wall -Wextra")
|
||||||
|
set(CMAKE_CXX_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs -Wshadow -Wall -Wextra -Wunused-variable")
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
function(join VALUES GLUE OUTPUT)
|
function(join VALUES GLUE OUTPUT)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user