summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2025-12-05 18:34:58 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2025-12-05 18:34:58 +0100
commit7b6b7df83870c81a3f45107701ddbe52b83f91ab (patch)
treeb0a74630e7977ab9bb5214dc7dc304db19d739a9 /Jenkinsfile
parent4b72df8f8e32aad83b628fb2f1c852cb108c2aba (diff)
Don't treat warnings as errors when building normally. But force warnings as errors on the build server.function_many_to_one
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index a558359..e518b6c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,11 +11,11 @@ pipeline {
echo 'Cleaning workspace ...'
sh 'git clean -d -x -f'
echo 'Building (clang) ...'
- sh 'CXX=/usr/local/opt/llvm/bin/clang++ LDFLAGS="-L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib/unwind -lunwind" ./bootstrap.sh'
+ sh 'CXXFLAGS=-Werror CXX=/usr/local/opt/llvm/bin/clang++ LDFLAGS="-L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib/unwind -lunwind" ./bootstrap.sh'
echo 'Testing (clang) ...'
sh './ctor check'
echo 'Testing suite (clang) ...'
- sh '(cd test/suite; CTORDIR=../../build CXX=/usr/local/opt/llvm/bin/clang++ LDFLAGS="-L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib/unwind -lunwind" ./test.sh)'
+ sh '(cd test/suite; CTORDIR=../../build CXXFLAGS=-Werror CXX=/usr/local/opt/llvm/bin/clang++ LDFLAGS="-L/usr/local/opt/llvm/lib/c++ -L/usr/local/opt/llvm/lib/unwind -lunwind" ./test.sh)'
}
post {
always {
@@ -32,11 +32,11 @@ pipeline {
echo 'Cleaning workspace ...'
sh 'git clean -d -x -f'
echo 'Building (gcc) ...'
- sh 'CXX=g++ ./bootstrap.sh'
+ sh 'CXXFLAGS=-Werror CXX=g++ ./bootstrap.sh'
echo 'Testing (gcc) ...'
sh './ctor check'
echo 'Testing suite (gcc) ...'
- sh '(cd test/suite; CTORDIR=../../build CXX=g++ ./test.sh)'
+ sh '(cd test/suite; CTORDIR=../../build CXXFLAGS=-Werror CXX=g++ ./test.sh)'
}
post {
always {
@@ -53,11 +53,11 @@ pipeline {
echo 'Cleaning workspace ...'
sh 'git clean -d -x -f'
echo 'Building (clang) ...'
- sh 'CXX=clang++ ./bootstrap.sh'
+ sh 'CXXFLAGS=-Werror CXX=clang++ ./bootstrap.sh'
echo 'Testing (clang) ...'
sh './ctor check'
echo 'Testing suite (clang) ...'
- sh '(cd test/suite; CTORDIR=../../build CXX=clang++ ./test.sh)'
+ sh '(cd test/suite; CTORDIR=../../build CXXFLAGS=-Werror CXX=clang++ ./test.sh)'
}
post {
always {