mirror of
https://github.com/zeldaret/mm.git
synced 2024-11-27 06:40:36 +00:00
57a9fb7b34
* Added tools/check_format.sh. * Exit nonzero from format.sh if clang-format-11 not installed. * Replace which with command -v. * Fail check_format.sh if format.sh fails. * Improve Jenkinsfile. * Take exit 0 out of else in check_format.sh. * Format flg_set.c to test new Jenkins environment. * Fix formatter failed logic in check_format.sh. * Format all misformatted files in master. * Remove Summarize Problems stage from Jenkins. I didn't realize Jenkins would not a run a subsequent stage if a previous stage errored. This defeats the purpose of summarizing all problems at the end, since this will only happen if there *are* no problems. * Use Post->Failure block to print all logs instead. * Remove spurious semicolon in arms_hook.
85 lines
2.8 KiB
Groovy
85 lines
2.8 KiB
Groovy
pipeline {
|
|
agent {
|
|
label 'mm'
|
|
}
|
|
|
|
stages {
|
|
stage('Check formatting') {
|
|
steps {
|
|
echo 'Checking formatting...'
|
|
sh 'bash -c "tools/check_format.sh 2>&1 >(tee tools/check_format.txt)"'
|
|
}
|
|
}
|
|
stage('Copy ROM') {
|
|
steps {
|
|
echo 'Setting up ROM...'
|
|
sh 'cp /usr/local/etc/roms/mm.us.rev1.z64 baserom.mm.us.rev1.z64'
|
|
}
|
|
}
|
|
stage('Setup') {
|
|
steps {
|
|
sh 'bash -c "make -j setup 2> >(tee tools/warnings_count/warnings_setup_new.txt)"'
|
|
}
|
|
}
|
|
stage('Check setup warnings') {
|
|
steps {
|
|
sh 'bash -c "./tools/warnings_count/compare_warnings.sh setup"'
|
|
}
|
|
}
|
|
stage('Disasm') {
|
|
steps {
|
|
sh 'bash -c "make -j disasm 2> >(tee tools/warnings_count/warnings_disasm_new.txt)"'
|
|
}
|
|
}
|
|
stage('Check disasm warnings') {
|
|
steps {
|
|
sh 'bash -c "./tools/warnings_count/compare_warnings.sh disasm"'
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh 'bash -c "make -j all 2> >(tee tools/warnings_count/warnings_build_new.txt)"'
|
|
}
|
|
}
|
|
stage('Check build warnings') {
|
|
steps {
|
|
sh 'bash -c "./tools/warnings_count/compare_warnings.sh build"'
|
|
}
|
|
}
|
|
stage('Report Progress') {
|
|
when {
|
|
branch 'master'
|
|
}
|
|
steps {
|
|
sh 'mkdir reports'
|
|
sh 'python3 ./tools/progress.py csv >> reports/progress_mm.us.rev1.csv'
|
|
sh 'python3 ./tools/progress.py csv -m >> reports/progress_matching_mm.us.rev1.csv'
|
|
sh 'python3 ./tools/progress.py shield-json > reports/progress_shield_mm.us.rev1.json'
|
|
stash includes: 'reports/*', name: 'reports'
|
|
}
|
|
}
|
|
stage('Update Progress') {
|
|
when {
|
|
branch 'master'
|
|
}
|
|
agent{
|
|
label 'master'
|
|
}
|
|
steps {
|
|
unstash 'reports'
|
|
sh 'cat reports/progress_mm.us.rev1.csv >> /var/www/html/reports/progress_mm.us.rev1.csv'
|
|
sh 'cat reports/progress_matching_mm.us.rev1.csv >> /var/www/html/reports/progress_matching_mm.us.rev1.csv'
|
|
sh 'cat reports/progress_shield_mm.us.rev1.json > /var/www/html/reports/progress_shield_mm.us.rev1.json'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
failure {
|
|
sh 'cat tools/check_format.txt tools/warnings_count/warnings_setup_new.txt tools/warnings_count/warnings_disasm_new.txt tools/warnings_count/warnings_build_new.txt'
|
|
}
|
|
always {
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|