move format check into regular build
All checks were successful
SCC Test/pipeline/head This commit looks good
All checks were successful
SCC Test/pipeline/head This commit looks good
This commit is contained in:
parent
1b99544779
commit
b274b0d80c
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@ -35,6 +35,7 @@ void build_n_test_project() {
|
|||||||
. .venv/bin/activate
|
. .venv/bin/activate
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
cmake -S . -B build --preset Release
|
cmake -S . -B build --preset Release
|
||||||
|
cmake --build build --target format-check
|
||||||
cmake --build build -j12
|
cmake --build build -j12
|
||||||
cmake --build build --target test
|
cmake --build build --target test
|
||||||
'''
|
'''
|
||||||
@ -71,24 +72,6 @@ pipeline {
|
|||||||
stage('Build & test') { steps { build_n_test_project() }}
|
stage('Build & test') { steps { build_n_test_project() }}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Format check') {
|
|
||||||
agent {docker {
|
|
||||||
image 'ubuntu-22.04'
|
|
||||||
args ' -e CONAN_HOME=/var/jenkins_home/workspace/conan-jammy'
|
|
||||||
} }
|
|
||||||
stages {
|
|
||||||
stage('Checkout') { steps { checkout_project() }}
|
|
||||||
stage('Build & check format') { steps {
|
|
||||||
sh'''
|
|
||||||
python3 -mvenv .venv
|
|
||||||
. .venv/bin/activate
|
|
||||||
pip3 install -r requirements.txt
|
|
||||||
cmake -S . -B build --preset Release
|
|
||||||
cmake --build build --target format-check
|
|
||||||
'''
|
|
||||||
}}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user