diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-12-29 10:48:41 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-12-29 19:04:26 +0100 |
commit | 9c3cc6a8a51c4c4f01be7149d8522a713df2149a (patch) | |
tree | 434e403a7db672660bf192280d5b7a91cecf5039 /Jenkinsfile | |
parent | 15e2bd35a8da320f074942e814885f3d6eaf0706 (diff) |
Enable mingw/gcc buildmingw
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 3812aca..f0f5c6a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,32 @@ pipeline { - agent any + agent { label 'linux' } stages { //////////////////////////////////////////////////// + stage('Windows mingw') { + agent { label 'windows && mingw && c++20' } + environment + { + PATH="C:\\msys64\\ucrt64\\bin;C:\\msys64\\usr\\bin;${env.PATH}" + } + steps { + echo 'Cleaning workspace ...' + bat 'git clean -d -x -f' + echo 'Building (mingw) ...' + bat 'sh -c "CXX=g++ AR=ar ./bootstrap.sh"' + echo 'Testing (mingw) ...' + bat 'ctor check' + echo 'Testing suite (mingw) ...' + bat 'sh -c "(cd test/suite; CTORDIR=../../build CXX=g++ ./test.sh)"' + } + post { + always { + xunit(thresholds: [ skipped(failureThreshold: '0'), + failed(failureThreshold: '0') ], + tools: [ CppUnit(pattern: 'build/test/*.xml') ]) + } + } + } + //////////////////////////////////////////////////// stage('Linux gcc') { agent { label 'linux && gcc && c++20' } steps { @@ -56,9 +81,11 @@ pipeline { dir ('build/test') { writeFile file:'dummy', text:'' } - bat '"%VSDEVCMD%" && bootstrap.bat && snot.exe' + bat '"%VSDEVCMD%" && bootstrap.bat && ctor.exe' echo 'Testing (msvc) ...' - bat 'snot.exe check' + bat 'ctor.exe check' + echo 'Testing suite (msvc) ...' + bat '(cd test/suite; test.bat)' } post { always { |