summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-12-22 17:53:10 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2024-12-22 17:59:55 +0100
commit78c5477b3989d67169de2d05665adfb801caab23 (patch)
tree3362847b4f2df8f968783a7030b5c737651e09f1 /Jenkinsfile
parente166206702c8dbd3162452cf26f368e856ac0138 (diff)
Refactor Jenkinsfile to be more per-target grouped.clang-tidying
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile66
1 files changed, 29 insertions, 37 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index c95b0eb..290f412 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,56 +1,48 @@
pipeline {
- agent { label 'c++20' }
-
+ agent any
stages {
- stage('Clean') {
+ ////////////////////////////////////////////////////
+ stage('Linux gcc') {
+ agent { label 'linux && gcc && c++20' }
steps {
echo 'Cleaning workspace ...'
- sh 'rm -Rf build*'
- }
- }
- stage('Build-gcc') {
- steps {
+ sh 'git clean -d -x -f'
echo 'Building (gcc) ...'
- sh 'BUILDDIR=build-gcc CXX=g++ ./bootstrap.sh'
- }
- }
- stage('Test-gcc') {
- steps {
+ sh 'CXX=g++ ./bootstrap.sh'
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)'
+ sh '(cd test/suite; CTORDIR=../../build CXX=g++ ./test.sh)'
}
- }
- stage('Build-clang') {
- steps {
- echo 'Building (clang) ...'
- sh 'BUILDDIR=build-clang CXX=clang++ ./bootstrap.sh'
+ post {
+ always {
+ xunit(thresholds: [ skipped(failureThreshold: '0'),
+ failed(failureThreshold: '0') ],
+ tools: [ CppUnit(pattern: 'build/test/*.xml') ])
+ }
}
}
- stage('Test-clang') {
+ ////////////////////////////////////////////////////
+ stage('Linux clang') {
+ agent { label 'linux && clang && c++20' }
steps {
+ echo 'Cleaning workspace ...'
+ sh 'git clean -d -x -f'
+ echo 'Building (clang) ...'
+ sh 'CXX=clang++ ./bootstrap.sh'
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)'
+ sh '(cd test/suite; CTORDIR=../../build CXX=clang++ ./test.sh)'
+ }
+ post {
+ always {
+ xunit(thresholds: [ skipped(failureThreshold: '0'),
+ failed(failureThreshold: '0') ],
+ tools: [ CppUnit(pattern: 'build/test/*.xml') ])
+ }
}
}
- }
-
- post {
- always {
- xunit(thresholds: [ skipped(failureThreshold: '0'),
- failed(failureThreshold: '0') ],
- tools: [ CppUnit(pattern: 'build-*/test/*.xml') ])
- }
+ ////////////////////////////////////////////////////
}
}