blob: 14f0547935917870affa735035cf953eed2b8d97 (
plain)
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
|
pipeline {
agent { label 'c++20' }
stages {
stage('Clean') {
steps {
echo 'Cleaning workspace ...'
sh 'rm -Rf build*'
}
}
stage('Build-gcc') {
steps {
echo 'Building (gcc) ...'
sh 'BUILDDIR=build-gcc CXX=g++ ./bootstrap.sh'
}
}
stage('Test-gcc') {
steps {
echo 'Testing (gcc) ...'
sh './ctor check'
}
}
stage('Build-clang') {
steps {
echo 'Building (clang) ...'
sh 'BUILDDIR=build-clang CXX=clang++ ./bootstrap.sh'
}
}
stage('Test-clang') {
steps {
echo 'Testing (clang) ...'
sh './ctor check'
}
}
}
post {
always {
xunit(thresholds: [ skipped(failureThreshold: '0'),
failed(failureThreshold: '0') ],
tools: [ CppUnit(pattern: 'build-*/test/*.xml') ])
}
}
}
|