-
Notifications
You must be signed in to change notification settings - Fork 19
/
Jenkinsfile
109 lines (100 loc) · 2.99 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
tests = [
'Gauss',
'ExamplesForHomalg',
'GaussForHomalg',
'GradedModules',
'HomalgToCAS',
'GradedRingForHomalg',
'IO_ForHomalg',
'LocalizeRingForHomalg',
'MatricesForHomalg',
'RingsForHomalg',
'SCO',
'Modules',
'homalg',
'AbelianSystems',
'alexander',
'CAP_project',
'Conley',
'D-Modules',
'k-Points',
'Orbifolds',
'Sheaves',
'SimplicialObjects',
'SystemTheory',
'ToricVarieties',
'VirtualCAS',
'test_suite_D-Modules',
'test_suite_ExamplesForHomalg_GAP',
'test_suite_ExamplesForHomalg_Macaulay',
'test_suite_ExamplesForHomalg_MAGMA',
'test_suite_ExamplesForHomalg_maple',
'test_suite_ExamplesForHomalg_Singular',
'test_suite_GradedModules_Macaulay',
'test_suite_GradedModules_MAGMA',
'test_suite_GradedModules_maple',
'test_suite_GradedModules_Singular',
'test_suite_MapleForHomalg',
'test_suite_RingsForHomalg',
'test_suite_Sheaves_Macaulay',
'test_suite_Sheaves_MAGMA',
'test_suite_Sheaves_maple',
'test_suite_Sheaves_Singular',
]
pipeline {
agent any
triggers {
cron(env.BRANCH_NAME == 'master' ? '00 04 * * *' : '')
}
options {
checkoutToSubdirectory('pkg/homalg_project')
}
stages {
stage('test') {
steps {
dir('pkg') {
sh 'rm -rf alcove; git clone --depth 1 https://github.com/homalg-project/alcove.git'
sh 'rm -rf alexander; git clone --depth 1 https://github.com/homalg-project/alexander.git'
sh 'rm -rf CddInterface; git clone --depth 1 https://github.com/homalg-project/CddInterface.git'
sh 'rm -rf CAP_project; git clone --depth 1 https://github.com/homalg-project/CAP_project.git'
sh 'rm -rf D-Modules; git clone --depth 1 https://github.com/homalg-project/D-Modules.git'
sh 'rm -rf NConvex; git clone --depth 1 https://github.com/homalg-project/NConvex.git'
sh 'rm -rf Sheaves; git clone --depth 1 https://github.com/homalg-project/Sheaves.git'
sh 'rm -rf ToricVarieties_project; git clone --depth 1 https://github.com/homalg-project/ToricVarieties_project.git'
sh 'rm -rf VirtualCAS; git clone --depth 1 https://github.com/homalg-project/VirtualCAS.git'
}
dir('pkg') {
sh 'make -C "CAP_project/CAP" doc'
sh 'make -C "CAP_project/CompilerForCAP" doc'
sh 'make -C "CAP_project/MonoidalCategories" doc'
sh 'make -C "CAP_project/CartesianCategories" doc'
sh 'make -C "CAP_project/FreydCategoriesForCAP" doc'
sh 'make -C "homalg_project/homalg" doc'
sh 'make -C "homalg_project/Modules" doc'
}
dir('pkg/homalg_project') {
sh 'make --trace -j $(nproc) --output-sync ci-test'
}
}
}
}
post {
success {
script {
tests.each { item ->
plot csvFileName: "plot-${item}-cpu-time.csv",
title: "${item} CPU Time",
group: "homalg performance",
style: "line",
csvSeries: [[ file: "pkg/${item}_cpu_time.csv" ]]
plot csvFileName: "plot-${item}-real-time.csv",
title: "${item} Real Time",
group: "homalg performance",
style: "line",
csvSeries: [[ file: "pkg/${item}_real_time.csv" ]]
}
}
cleanWs()
}
}
}