mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 00:42:34 +01:00
a557e4cd96
* root-level configure script * fix configure on macos?
58 lines
1.7 KiB
Groovy
58 lines
1.7 KiB
Groovy
pipeline {
|
|
agent {
|
|
label 'papermario'
|
|
}
|
|
|
|
stages {
|
|
stage('Setup') {
|
|
steps {
|
|
sh 'cp /usr/local/etc/roms/papermario.us.z64 ver/us/baserom.z64'
|
|
sh 'cp /usr/local/etc/roms/papermario.jp.z64 ver/jp/baserom.z64'
|
|
sh './configure'
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh 'ninja'
|
|
}
|
|
}
|
|
stage('Report Progress') {
|
|
when {
|
|
branch 'master'
|
|
}
|
|
steps {
|
|
sh 'mkdir reports'
|
|
|
|
sh 'python3 progress.py us --csv >> reports/progress_us.csv'
|
|
sh 'python3 progress.py us --shield-json > reports/progress_us_shield.json'
|
|
|
|
sh 'python3 progress.py jp --csv >> reports/progress_jp.csv'
|
|
sh 'python3 progress.py jp --shield-json > reports/progress_jp_shield.json'
|
|
|
|
stash includes: 'reports/*', name: 'reports'
|
|
}
|
|
}
|
|
stage('Update Progress') {
|
|
when {
|
|
branch 'master'
|
|
}
|
|
agent {
|
|
label 'master'
|
|
}
|
|
steps {
|
|
unstash 'reports'
|
|
sh 'cat reports/progress_us.csv >> /var/www/papermar.io/html/reports/progress_us.csv'
|
|
sh 'cat reports/progress_us_shield.json > /var/www/papermar.io/html/reports/progress_us_shield.json'
|
|
|
|
sh 'cat reports/progress_jp.csv >> /var/www/papermar.io/html/reports/progress_jp.csv'
|
|
sh 'cat reports/progress_jp_shield.json > /var/www/papermar.io/html/reports/progress_jp_shield.json'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|