Compare commits

..

6 Commits

Author SHA1 Message Date
Erki
69e1538cbb Merge branch 'support/jenkins'
Some checks failed
continuous-integration/drone/push Build is failing
gitea/skullc-peripherals/pipeline/head There was a failure building this commit
2022-06-16 23:03:00 +03:00
Erki
227af3c9fc now with XML
All checks were successful
continuous-integration/drone/push Build is passing
gitea/skullc-peripherals/pipeline/head This commit looks good
2022-01-23 19:12:47 +02:00
Erki
b8c3e32fd6 yup
All checks were successful
continuous-integration/drone/push Build is passing
gitea/skullc-peripherals/pipeline/head This commit looks good
2022-01-23 18:48:39 +02:00
Erki
d909651bf1 testies
Some checks failed
gitea/skullc-peripherals/pipeline/head There was a failure building this commit
continuous-integration/drone/push Build is passing
2022-01-23 18:46:26 +02:00
Erki
dc9e159377 le woops
Some checks failed
gitea/skullc-peripherals/pipeline/head There was a failure building this commit
continuous-integration/drone/push Build is passing
2022-01-23 18:34:37 +02:00
Erki
88aa3087fe Yup, away we goo
Some checks failed
gitea/skullc-peripherals/pipeline/head There was a failure building this commit
continuous-integration/drone/push Build is passing
2022-01-23 18:33:24 +02:00

55
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,55 @@
pipeline {
agent {
label 'ubuntu'
}
stages {
stage("build && test") {
steps {
echo "Workspace: ${env.WORKSPACE}"
sh 'ls'
sh 'sudo pip3 install --upgrade conan==1.42.1'
sh 'conan profile new default --detect'
sh 'conan profile update settings.compiler.libcxx=libstdc++11 default'
sh 'mkdir -p build'
dir("build") {
sh 'ls'
sh 'conan install .. --build=missing'
sh 'cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=ON'
sh 'ninja'
sh 'ctest . -T test --output-on-failure --no-compress-output'
}
}
}
}
post {
always {
archiveArtifacts (
artifacts: 'build/Testing/**/*.xml',
fingerprint: true
)
// Process the CTest xml output with the xUnit plugin
xunit (
testTimeMargin: '3000',
thresholdMode: 1,
thresholds: [
skipped(failureThreshold: '0'),
failed(failureThreshold: '0')
],
tools: [CTest(
pattern: 'build/Testing/**/*.xml',
deleteOutputFiles: true,
failIfNotNew: false,
skipNoTestFiles: true,
stopProcessingIfError: true
)]
)
// Clear the source and build dirs before next run
deleteDir()
}
}
}