You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
Groovy
41 lines
1.3 KiB
Groovy
pipeline {
|
|
// Agente
|
|
agent {
|
|
docker {
|
|
image 'debian:12'
|
|
args '-u root'
|
|
}
|
|
}
|
|
|
|
// Fases
|
|
stages {
|
|
stage('DEDENDENCIAS') {
|
|
steps {
|
|
echo "Actualizar repos, upgrade de paquetes instalados."
|
|
sh "apt-get update && apt-get -y upgrade"
|
|
echo "Instalar paquetes necesarios para compilar."
|
|
sh "apt install -y g++ make git nasm libsdl2-dev libsdl2-net-dev liba52-dev libjpeg62-turbo-dev libmpeg2-4-dev libogg-dev libvorbis-dev libflac-dev libmad0-dev libpng-dev libtheora-dev libfaad-dev libfluidsynth-dev libfreetype6-dev zlib1g-dev libfribidi-dev libgif-dev libglew-dev libcurl4-openssl-dev libgtk-3-dev libspeechd-dev libsndio-dev"
|
|
}
|
|
}
|
|
stage('CLONE REPO') {
|
|
steps {
|
|
echo "Clonar repositorio Git del proyecto."
|
|
sh "git clone -b master --depth 1 https://github.com/scummvm/scummvm.git /tmp/scummvm"
|
|
}
|
|
}
|
|
stage('CONFIGURE') {
|
|
steps {
|
|
echo "Configure Scummvm"
|
|
sh "cd /tmp/scummvm && ./configure --enable-all-engines --disable-discord --enable-plugins --enable-profiling"
|
|
}
|
|
}
|
|
stage('COMPILAR') {
|
|
steps {
|
|
echo "Compilar e instalar en el sistema la nueva versión de Scummvm"
|
|
sh "cd /tmp/scummvm && make clean ; make -j2 ; make install"
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|