1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-25 22:26:12 +00:00
oot/Jenkinsfile

90 lines
2.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 formatting (full)') {
when {
branch 'main'
}
steps {
echo 'Checking formatting on all files...'
sh 'python3 tools/check_format.py'
}
}
stage('Check formatting (modified)') {
when {
not {
branch 'main'
}
}
steps {
echo 'Checking formatting on modified files...'
sh 'python3 tools/check_format.py --verbose --compare-to origin/main'
}
}
stage('Setup gc-eu-mq-dbg') {
2020-03-17 05:54:42 +00:00
steps {
sh 'cp /usr/local/etc/roms/oot-gc-eu-mq-dbg.z64 baseroms/gc-eu-mq-dbg/baserom.z64'
sh 'make -j setup'
}
}
stage('Build gc-eu-mq-dbg') {
2020-03-17 05:54:42 +00:00
steps {
sh 'make -j RUN_CC_CHECK=0'
2020-03-17 05:54:42 +00:00
}
}
stage('Setup gc-eu-mq') {
steps {
sh 'cp /usr/local/etc/roms/oot-gc-eu-mq.z64 baseroms/gc-eu-mq/baserom.z64'
sh 'make -j setup VERSION=gc-eu-mq'
}
}
stage('Build gc-eu-mq') {
steps {
sh 'make -j VERSION=gc-eu-mq RUN_CC_CHECK=0'
}
}
stage('Report Progress') {
when {
branch 'main'
}
steps {
sh 'mkdir reports'
sh 'python3 progress.py csv >> reports/progress-oot-nonmatching.csv'
sh 'python3 progress.py csv -m >> reports/progress-oot-matching.csv'
sh 'python3 progress.py shield-json > reports/progress-oot-shield.json'
stash includes: 'reports/*', name: 'reports'
}
}
stage('Update Progress') {
when {
branch 'main'
}
agent {
2022-10-16 07:45:29 +00:00
label 'zeldaret_website'
}
steps {
unstash 'reports'
sh 'cat reports/progress-oot-nonmatching.csv >> /var/www/zelda64.dev/assets/csv/progress-oot-nonmatching.csv'
2021-12-18 15:31:22 +00:00
sh 'cat reports/progress-oot-matching.csv >> /var/www/zelda64.dev/assets/csv/progress-oot-matching.csv'
sh 'cat reports/progress-oot-shield.json > /var/www/zelda64.dev/assets/csv/progress-oot-shield.json'
}
}
2020-03-17 05:54:42 +00:00
}
post {
always {
echo "Finished, deleting directory."
deleteDir()
}
cleanup {
echo "Clean up in post."
cleanWs(cleanWhenNotBuilt: false,
deleteDirs: true,
disableDeferredWipeout: true,
notFailBuild: true)
2020-03-17 05:54:42 +00:00
}
}
}