tmc/Jenkinsfile

36 lines
874 B
Groovy

pipeline {
agent any
stages {
stage('Setup') {
steps {
echo 'Setting up...'
git clone https://github.com/zeldaret/tmc
cd ./tmc
sh ${env.AGBCC}/install.sh .
sh 'cp /usr/local/etc/roms/baserom_tmc.gba baserom.gba'
sh 'make -j setup'
}
}
stage('Build') {
steps {
sh 'make -j'
}
}
stage('Report Progress') {
when {
branch 'master'
}
steps {
sh 'python3 progress.py >> /var/www/html/reports/progress_tmc.csv'
sh 'python3 progress.py -m >> /var/www/html/reports/progress_tmc_matching.csv'
}
}
}
post {
always {
cleanWs()
}
}
}