Migrate off CircleCI to Jenkins (#5230)
* 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>master
parent
db68179776
commit
62e95745ac
@ -1,41 +0,0 @@
|
||||
version: 2
|
||||
jobs:
|
||||
checkout_cuberite:
|
||||
working_directory: ~/cuberite
|
||||
docker: &cube_docker
|
||||
- image: cuberite/docker-build-image:circle-ci
|
||||
steps:
|
||||
- checkout
|
||||
- run: git submodule update --init
|
||||
- persist_to_workspace:
|
||||
root: ~/
|
||||
paths:
|
||||
- cuberite
|
||||
|
||||
check_basic_style:
|
||||
working_directory: ~/cuberite/src
|
||||
docker: *cube_docker
|
||||
steps:
|
||||
- attach_workspace: { at: ~/ }
|
||||
- run: find . -name \*.cpp -or -name \*.h > AllFiles.lst
|
||||
- run: lua CheckBasicStyle.lua
|
||||
- run: cd Bindings && lua CheckBindingsDependencies.lua
|
||||
|
||||
clang-tidy:
|
||||
working_directory: ~/cuberite
|
||||
docker: *cube_docker
|
||||
steps:
|
||||
- attach_workspace: { at: ~/ }
|
||||
- run: ./clang-tidy.sh -j 2
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
checks:
|
||||
jobs:
|
||||
- checkout_cuberite
|
||||
- check_basic_style:
|
||||
requires:
|
||||
- checkout_cuberite
|
||||
- clang-tidy:
|
||||
requires:
|
||||
- checkout_cuberite
|
@ -0,0 +1,35 @@
|
||||
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."'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue