2020-03-17 05:54:42 +00:00
|
|
|
pipeline {
|
2021-03-23 01:17:02 +00:00
|
|
|
agent {
|
|
|
|
label 'oot'
|
|
|
|
}
|
2020-03-17 05:54:42 +00:00
|
|
|
|
|
|
|
stages {
|
2024-01-31 03:25:24 +00:00
|
|
|
stage('Check formatting (full)') {
|
|
|
|
when {
|
|
|
|
branch 'main'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
echo 'Checking formatting on all files...'
|
2024-01-31 23:05:33 +00:00
|
|
|
sh 'python3 tools/check_format.py'
|
2024-01-31 03:25:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Check formatting (modified)') {
|
|
|
|
when {
|
|
|
|
not {
|
|
|
|
branch 'main'
|
|
|
|
}
|
|
|
|
}
|
2024-01-29 12:25:58 +00:00
|
|
|
steps {
|
2024-01-31 03:25:24 +00:00
|
|
|
echo 'Checking formatting on modified files...'
|
2024-01-31 23:05:33 +00:00
|
|
|
sh 'python3 tools/check_format.py --verbose --compare-to origin/main'
|
2024-01-29 12:25:58 +00:00
|
|
|
}
|
|
|
|
}
|
2024-04-20 04:12:26 +00:00
|
|
|
stage('Setup gc-eu-mq-dbg') {
|
2020-03-17 05:54:42 +00:00
|
|
|
steps {
|
2024-04-20 04:12:26 +00:00
|
|
|
sh 'cp /usr/local/etc/roms/oot-gc-eu-mq-dbg.z64 baseroms/gc-eu-mq-dbg/baserom.z64'
|
2024-01-25 00:39:13 +00:00
|
|
|
sh 'make -j setup'
|
2020-08-22 23:06:52 +00:00
|
|
|
}
|
|
|
|
}
|
2024-04-20 04:12:26 +00:00
|
|
|
stage('Build gc-eu-mq-dbg (qemu-irix)') {
|
2020-08-22 23:06:52 +00:00
|
|
|
when {
|
2023-09-22 15:40:19 +00:00
|
|
|
branch 'main'
|
2020-08-22 23:06:52 +00:00
|
|
|
}
|
|
|
|
steps {
|
2024-01-25 00:39:13 +00:00
|
|
|
sh 'make -j ORIG_COMPILER=1'
|
2020-03-17 05:54:42 +00:00
|
|
|
}
|
|
|
|
}
|
2024-04-20 04:12:26 +00:00
|
|
|
stage('Build gc-eu-mq-dbg') {
|
2020-08-22 23:06:52 +00:00
|
|
|
when {
|
|
|
|
not {
|
2023-09-22 15:40:19 +00:00
|
|
|
branch 'main'
|
2020-08-22 23:06:52 +00:00
|
|
|
}
|
|
|
|
}
|
2020-03-17 05:54:42 +00:00
|
|
|
steps {
|
2024-02-01 20:08:45 +00:00
|
|
|
sh 'make -j RUN_CC_CHECK=0'
|
2020-03-17 05:54:42 +00:00
|
|
|
}
|
|
|
|
}
|
2024-04-20 04:12:26 +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 (qemu-irix)') {
|
|
|
|
when {
|
|
|
|
branch 'main'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'make -j VERSION=gc-eu-mq ORIG_COMPILER=1'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build gc-eu-mq') {
|
|
|
|
when {
|
|
|
|
not {
|
|
|
|
branch 'main'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'make -j VERSION=gc-eu-mq RUN_CC_CHECK=0'
|
|
|
|
}
|
|
|
|
}
|
2020-05-26 20:36:30 +00:00
|
|
|
stage('Report Progress') {
|
|
|
|
when {
|
2023-09-22 15:40:19 +00:00
|
|
|
branch 'main'
|
2020-05-26 20:36:30 +00:00
|
|
|
}
|
|
|
|
steps {
|
2021-03-23 01:17:02 +00:00
|
|
|
sh 'mkdir reports'
|
2021-12-18 15:09:51 +00:00
|
|
|
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'
|
2021-03-23 01:17:02 +00:00
|
|
|
stash includes: 'reports/*', name: 'reports'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Update Progress') {
|
|
|
|
when {
|
2023-09-22 15:40:19 +00:00
|
|
|
branch 'main'
|
2021-03-23 01:17:02 +00:00
|
|
|
}
|
|
|
|
agent {
|
2022-10-16 07:45:29 +00:00
|
|
|
label 'zeldaret_website'
|
2021-03-23 01:17:02 +00:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
unstash 'reports'
|
2021-12-18 15:09:51 +00:00
|
|
|
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'
|
2021-12-18 15:09:51 +00:00
|
|
|
sh 'cat reports/progress-oot-shield.json > /var/www/zelda64.dev/assets/csv/progress-oot-shield.json'
|
2020-05-26 20:36:30 +00:00
|
|
|
}
|
|
|
|
}
|
2020-03-17 05:54:42 +00:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
2022-12-20 05:13:52 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|