diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-12-15 11:05:31 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-09 17:22:54 +0100 |
commit | 55ab1f564286c6f3e986bf68ebb271132a749c6f (patch) | |
tree | bf6b35923b3a2e85cb061c78ea929ff58933c720 /Jenkinsfile | |
parent | de26eed5157a1b5efc2a72668b4f4a22638f2774 (diff) |
Add clang support.
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 41 |
1 files changed, 34 insertions, 7 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index b483ac3..9a99f2d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,18 +2,45 @@ pipeline { agent { label 'c++20' } stages { - stage('Build') { + stage('Clean') { steps { - echo 'Building...' - sh 'rm -Rf build' + echo 'Cleaning workspace ...' + sh 'rm -Rf build build-gcc build-clang' + } + } + stage('Build-gcc') { + steps { + echo 'Building (gcc) ...' sh './bootstrap.sh' } } - stage('Test') { + stage('Test-gcc') { + steps { + echo 'Testing (gcc) ...' + sh './ctor check' + } + post { + always { + sh 'mv build build-gcc' + } + } + } + stage('Build-clang') { + steps { + echo 'Building (clang) ...' + sh 'CXX=clang++ ./bootstrap.sh' + } + } + stage('Test-clang') { steps { - echo 'Testing...' + echo 'Testing (clang) ...' sh './ctor check' } + post { + always { + sh 'mv build build-clang' + } + } } } @@ -21,7 +48,7 @@ pipeline { always { xunit(thresholds: [ skipped(failureThreshold: '0'), failed(failureThreshold: '0') ], - tools: [ CppUnit(pattern: 'build/test/*.xml') ]) + tools: [ CppUnit(pattern: 'build-*/test/*.xml') ]) } } -}
\ No newline at end of file +} |