-
Notifications
You must be signed in to change notification settings - Fork 13
/
Jenkinsfile
59 lines (56 loc) · 2.08 KB
/
Jenkinsfile
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
node {
stage('Fetch') {
dir('modules') {
checkout scm
sh 'git submodule sync --recursive'
sh 'git submodule update --init --recursive'
}
dir('inviwo') {
git([url: 'https://github.com/inviwo/inviwo.git', branches: '*/master'])
}
}
def util = load "${env.WORKSPACE}/inviwo/tools/jenkins/util.groovy"
util.config(this)
writeFile file: 'inviwo/CMakeUserPresets.json', text: """
{
"version": 6,
"cmakeMinimumRequired": { "major": 3, "minor": 23, "patch": 0 },
"configurePresets": [
{
"name": "ninja-developer-modules",
"displayName": "Ninja Developer configuration",
"inherits" : ["ninja-developer", "modules", "modules-vcpkg"],
"cacheVariables": {
"VCPKG_TARGET_TRIPLET" : "x64-osx-dynamic",
"VCPKG_MANIFEST_FEATURES" : ""
}
}
]
}
"""
def modulePaths = ["${env.WORKSPACE}/modules/misc",
"${env.WORKSPACE}/modules/molvis",
"${env.WORKSPACE}/modules/tensorvis",
"${env.WORKSPACE}/modules/topovis",
"${env.WORKSPACE}/modules/vectorvis"]
util.wrap(this, "#jenkins-branch-pr") {
util.format(this, "${env.WORKSPACE}/modules")
util.buildStandard(
state: this,
modulePaths: modulePaths,
onModules: ["OPENMESH", "SPRINGSYSTEM", "VASP",
"NANOVGUTILS", "TENSORVISBASE", "INTEGRALLINEFILTERING",
"MOLVISBASE", "MOLVISGL", "MOLVISPYTHON",
"DATAFRAMECLUSTERING"],
offModules: ["VTK", "TENSORVISIO", "TTK", "GRAPHVIZ"],
opts: [:],
preset: "ninja-developer-modules"
)
util.warn(this, 'daily/modules/appleclang')
util.unittest(this)
util.integrationtest(this)
util.regression(this, modulePaths)
util.copyright(this)
util.doxygen(this)
}
}