From 62e95745ac02e8f849f9f99dce08280e96c55bed Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Tue, 15 Jun 2021 09:00:02 +0000 Subject: 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> --- Jenkinsfile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Jenkinsfile (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..a4abbd076 --- /dev/null +++ b/Jenkinsfile @@ -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."' + } + } + } +} -- cgit v1.2.3