summaryrefslogtreecommitdiff
path: root/Jenkinsfile
blob: c95b0ebb68c657901a6401f61952d24689185181 (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
45
46
47
48
49
50
51
52
53
54
55
56
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('Test-suite-gcc') {
			steps {
				echo 'Testing suite (gcc) ...'
				sh '(cd test/suite; CTORDIR=../../build-gcc CXX=g++ ./test.sh)'
			}
		}
		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'
			}
		}
		stage('Test-suite-clang') {
			steps {
				echo 'Testing suite (clang) ...'
				sh '(cd test/suite; CTORDIR=../../build-clang CXX=clang++ ./test.sh)'
			}
		}
	}

	post {
		always {
			xunit(thresholds: [ skipped(failureThreshold: '0'),
			                    failed(failureThreshold: '0') ],
			      tools: [ CppUnit(pattern: 'build-*/test/*.xml') ])
		}
	}
}