1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-11 03:39:59 +00:00
oot/Jenkinsfile

69 lines
1.8 KiB
Text
Raw Normal View History

2020-03-17 05:54:42 +00:00
pipeline {
agent {
label 'oot'
}
2020-03-17 05:54:42 +00:00
stages {
stage('Check for unused asm') {
steps {
sh './tools/find_unused_asm.sh'
}
}
2020-03-17 05:54:42 +00:00
stage('Setup') {
steps {
sh 'cp /usr/local/etc/roms/baserom_oot.z64 baserom_original.z64'
sh 'make -j setup'
}
}
stage('Build (qemu-irix)') {
when {
branch 'master'
}
steps {
sh 'ORIG_COMPILER=1 make -j'
2020-03-17 05:54:42 +00:00
}
}
stage('Build') {
when {
not {
branch 'master'
}
}
2020-03-17 05:54:42 +00:00
steps {
sh 'make -j'
2020-03-17 05:54:42 +00:00
}
}
stage('Report Progress') {
when {
branch 'master'
}
steps {
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-03-17 05:54:42 +00:00
}
post {
always {
cleanWs()
}
}
}