Files
af/Jenkinsfile
T
Anghelo Carvajal 78b87b21fb Jenkins CI (#8)
* Jenkinsfile

* Fix format path

* I have the stupid

* Change CC_CHECK to gcc

* Update Makefile

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

---------

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2023-04-01 20:32:16 -03:00

54 lines
1.2 KiB
Groovy

pipeline {
agent {
label 'af'
}
options {
ansiColor('xterm')
}
stages {
stage('Check formatting') {
steps {
echo 'Checking formatting...'
sh 'bash -c "tools/check_format.sh 2>&1 >(tee tools/check_format.txt)"'
}
}
stage('Install Python dependencies') {
steps {
echo 'Installing Python dependencies'
sh 'python3 -m pip install -r requirements.txt -U'
}
}
stage('Copy ROM') {
steps {
echo 'Setting up ROM...'
sh 'cp /usr/local/etc/roms/af.jp.z64 baserom.jp.z64'
}
}
stage('Setup') {
steps {
sh 'bash -c "make -j setup"'
}
}
stage('Extract') {
steps {
sh 'bash -c "make -j extract"'
}
}
stage('Build') {
steps {
sh 'bash -c "make -j uncompressed"'
}
}
}
post {
failure {
sh 'cat tools/check_format.txt'
}
always {
cleanWs()
}
}
}