62e95745ac
* Add Jenkinsfile * cd src * Escape wildcards * Refactor stages * Remove CircleCI junk * Make clang-tidy do something * updated regex to include only the files in the base src directory * fixed errors displayed by new clang tidy version * adjust clang core count to actual count * Update README with new Jenkins build Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
36 lines
971 B
Groovy
36 lines
971 B
Groovy
pipeline {
|
|
agent {
|
|
docker 'cuberite/docker-ci/minimal:latest'
|
|
}
|
|
stages {
|
|
stage("Prepare") {
|
|
steps {
|
|
sh 'git submodule update --init'
|
|
}
|
|
}
|
|
stage("Check") {
|
|
parallel {
|
|
stage("CheckBasicStyle") {
|
|
steps {
|
|
dir("src") {
|
|
sh 'find . -name \\*.cpp -or -name \\*.h > AllFiles.lst'
|
|
sh 'lua CheckBasicStyle.lua'
|
|
sh 'cd Bindings && lua CheckBindingsDependencies.lua'
|
|
}
|
|
}
|
|
}
|
|
stage("clang-tidy") {
|
|
steps {
|
|
sh './clang-tidy.sh -j 3'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage("Build") {
|
|
steps {
|
|
sh 'echo "TODO: Replace Travis here."'
|
|
}
|
|
}
|
|
}
|
|
}
|