mirror of
https://github.com/zeldaret/af.git
synced 2026-09-26 13:33:16 -04:00
2b650b1c6a
* warnings_count fix * Split rom and compress in check_new_warnings.sh * Jenkinsfile * Fix full check * A couple more small fixes
101 lines
3.1 KiB
Groovy
101 lines
3.1 KiB
Groovy
pipeline {
|
|
agent {
|
|
label 'af'
|
|
}
|
|
|
|
environment {
|
|
FROGRESS_KEY = credentials('af_frogress_key')
|
|
}
|
|
|
|
options {
|
|
ansiColor('xterm')
|
|
}
|
|
|
|
stages {
|
|
stage('Check formatting') {
|
|
steps {
|
|
echo 'Checking formatting...'
|
|
sh 'bash -c "tools/check_format.sh 2>&1 >(tee tools/check_format.txt)"'
|
|
}
|
|
}
|
|
stage('Install Python dependencies') {
|
|
steps {
|
|
echo 'Installing Python dependencies'
|
|
sh 'make venv'
|
|
}
|
|
}
|
|
stage('Copy ROM') {
|
|
steps {
|
|
echo 'Setting up ROM...'
|
|
sh 'cp /usr/local/etc/roms/af.jp.z64 baseroms/jp/baserom.z64'
|
|
}
|
|
}
|
|
stage('Setup') {
|
|
steps {
|
|
sh 'bash -c "make WARNINGS_CHECK=1 -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('Lib') {
|
|
steps {
|
|
sh 'bash -c "make WARNINGS_CHECK=1 -j lib 2> >(tee tools/warnings_count/warnings_lib_new.txt)"'
|
|
}
|
|
}
|
|
stage('Check Lib warnings') {
|
|
steps {
|
|
sh 'bash -c "./tools/warnings_count/compare_warnings.sh lib"'
|
|
}
|
|
}
|
|
stage('Extract') {
|
|
steps {
|
|
sh 'bash -c "make WARNINGS_CHECK=1 -j extract 2> >(tee tools/warnings_count/warnings_extract_new.txt)"'
|
|
}
|
|
}
|
|
stage('Check extraction warnings') {
|
|
steps {
|
|
sh 'bash -c "./tools/warnings_count/compare_warnings.sh extract"'
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh 'bash -c "make WARNINGS_CHECK=1 -j rom 2> >(tee tools/warnings_count/warnings_build_new.txt)"'
|
|
}
|
|
}
|
|
stage('Check build uncompressed warnings') {
|
|
steps {
|
|
sh 'bash -c "./tools/warnings_count/compare_warnings.sh build"'
|
|
}
|
|
}
|
|
stage('Build compressed') {
|
|
steps {
|
|
sh 'bash -c "make WARNINGS_CHECK=1 -j compress 2> >(tee tools/warnings_count/warnings_compress_new.txt)"'
|
|
}
|
|
}
|
|
stage('Check compress warnings') {
|
|
steps {
|
|
sh 'bash -c "./tools/warnings_count/compare_warnings.sh compress"'
|
|
}
|
|
}
|
|
stage('Upload to Frogress') {
|
|
when {
|
|
branch 'main'
|
|
}
|
|
steps {
|
|
sh '.venv/bin/python3 ./tools/upload_frogress.py jp --apikey $FROGRESS_KEY'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
failure {
|
|
sh 'cat tools/check_format.txt tools/warnings_count/warnings_setup_new.txt tools/warnings_count/warnings_lib_new.txt tools/warnings_count/warnings_extract_new.txt tools/warnings_count/warnings_uncompressed_new.txt tools/warnings_count/warnings_compress_new.txt'
|
|
}
|
|
always {
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|