skullc-peripherals/Jenkinsfile
Erki b8c3e32fd6
All checks were successful
continuous-integration/drone/push Build is passing
gitea/skullc-peripherals/pipeline/head This commit looks good
yup
2022-01-23 18:48:39 +02:00

27 lines
776 B
Groovy

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 . --output-on-failure'
}
}
}
}
}