Added Jenkinsfile

coolant-mod
krzys-h 2016-05-27 19:05:26 +02:00
parent 229394cda2
commit cbd7b5b46a
1 changed files with 19 additions and 0 deletions

19
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,19 @@
node('master') {
stage 'Pull changes'
checkout scm
stage 'Build data'
sh 'mkdir -p build'
dir('build') {
sh '''
cmake -DCMAKE_INSTALL_PREFIX=/install -DCOLOBOT_INSTALL_DATA_DIR=/install/data ..
make
rm -rf install
DESTDIR=. make install
'''
}
stage 'Archive data'
sh 'rm -f data.zip'
zip zipFile: 'data.zip', archive: true, dir: 'build/install'
}