mirror of
https://github.com/zeldaret/oot.git
synced 2025-10-20 05:30:26 +00:00
Only check formatting on modified files (#1673)
* only check formatting on modified files (attempt 1) * foreshadow maximum command string length being an issue and pass files list using a file * rm temp file list otherwise it shows in git status and counts as a "formatting diff"... * cheeky z_play modif * format
This commit is contained in:
parent
87a886df5b
commit
44408ce219
3 changed files with 66 additions and 7 deletions
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
|
@ -4,10 +4,24 @@ pipeline {
|
|||
}
|
||||
|
||||
stages {
|
||||
stage('Check formatting') {
|
||||
stage('Check formatting (full)') {
|
||||
when {
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
echo 'Checking formatting...'
|
||||
sh 'tools/check_format.sh'
|
||||
echo 'Checking formatting on all files...'
|
||||
sh 'tools/check_format.sh full'
|
||||
}
|
||||
}
|
||||
stage('Check formatting (modified)') {
|
||||
when {
|
||||
not {
|
||||
branch 'main'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
echo 'Checking formatting on modified files...'
|
||||
sh 'tools/check_format.sh modified'
|
||||
}
|
||||
}
|
||||
stage('Setup') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue