feat add test, benchmark

This commit is contained in:
tqcq 2024-07-19 10:36:47 +08:00 committed by tqcq
parent 346dfd731d
commit c365a76482

17
Jenkinsfile vendored
View File

@ -10,10 +10,10 @@ pipeline {
}
stages {
stage("Checkout") {
stage('Checkout') {
steps {
cleanWs()
checkout scm
cleanWs()
checkout scm
}
}
@ -22,14 +22,19 @@ pipeline {
sh 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DTILE_BUILD_TESTS=ON -DTILE_BUILD_BENCHMARKS=ON'
}
}
stage('Build'){
stage('Build') {
steps {
sh 'cmake --build build --target all -- -j`nproc --ignore=4`'
}
}
stage('Deploy') {
stage('Test') {
steps {
sh 'echo publish'
sh 'cd build && ctest -j `nproc --ignore=4`'
}
}
stage('Benchmark') {
steps {
sh 'cd build && ./bin/tile_bm_all'
}
}
}