2020-03-17 01:54:42 -04:00
|
|
|
pipeline {
|
2021-03-23 10:17:02 +09:00
|
|
|
agent {
|
|
|
|
label 'oot'
|
|
|
|
}
|
2020-03-17 01:54:42 -04:00
|
|
|
|
|
|
|
stages {
|
2020-06-23 13:59:59 -04:00
|
|
|
stage('Check for unused asm') {
|
|
|
|
steps {
|
|
|
|
sh './tools/find_unused_asm.sh'
|
|
|
|
}
|
|
|
|
}
|
2020-03-17 01:54:42 -04:00
|
|
|
stage('Setup') {
|
|
|
|
steps {
|
2020-03-28 17:34:57 -04:00
|
|
|
sh 'cp /usr/local/etc/roms/baserom_oot.z64 baserom_original.z64'
|
2020-08-22 19:06:52 -04:00
|
|
|
sh 'make -j setup'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build (qemu-irix)') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'ORIG_COMPILER=1 make -j'
|
2020-03-17 01:54:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
2020-08-22 19:06:52 -04:00
|
|
|
when {
|
|
|
|
not {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
}
|
2020-03-17 01:54:42 -04:00
|
|
|
steps {
|
2020-08-22 19:06:52 -04:00
|
|
|
sh 'make -j'
|
2020-03-17 01:54:42 -04:00
|
|
|
}
|
|
|
|
}
|
2020-05-26 16:36:30 -04:00
|
|
|
stage('Report Progress') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
2021-03-23 10:17:02 +09:00
|
|
|
sh 'mkdir reports'
|
|
|
|
sh 'python3 progress.py csv >> reports/progress.csv'
|
|
|
|
sh 'python3 progress.py csv -m >> reports/progress_matching.csv'
|
|
|
|
sh 'python3 progress.py shield-json > reports/progress_shield.json'
|
|
|
|
stash includes: 'reports/*', name: 'reports'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Update Progress') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
agent {
|
|
|
|
label 'master'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
unstash 'reports'
|
|
|
|
sh 'cat reports/progress.csv >> /var/www/html/reports/progress.csv'
|
|
|
|
sh 'cat reports/progress_matching.csv >> /var/www/html/reports/progress_matching.csv'
|
|
|
|
sh 'cat reports/progress_shield.json > /var/www/html/reports/progress_shield.json'
|
2020-05-26 16:36:30 -04:00
|
|
|
}
|
|
|
|
}
|
2020-03-17 01:54:42 -04:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
cleanWs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|