uts-server/Jenkinsfile

71 lines
2.5 KiB
Plaintext
Raw Normal View History

2017-04-23 18:10:40 +02:00
pipeline {
2017-04-27 22:13:33 +02:00
agent any
2017-04-23 18:10:40 +02:00
stages {
2017-04-25 09:58:11 +02:00
stage('Compile') {
2017-04-23 18:10:40 +02:00
steps {
parallel(
2017-04-25 09:58:11 +02:00
"OpenBSD 6.1": {
2017-04-27 22:13:33 +02:00
node(label: 'openbsd-6.1') {
sh 'git config --global user.name "jenkins@kakwa.fr"'
sh 'git config --global user.email "jenkins@kakwa.fr"'
git 'https://github.com/kakwa/uts-server'
sh 'git clean -fdx'
sh 'export CC=/usr/local/bin/egcc;export CXX=/usr/local/bin/ec++; cmake . -DBUNDLE_CIVETWEB=ON'
sh 'export CC=/usr/local/bin/egcc;export CXX=/usr/local/bin/ec++; make -j4'
sh './tests/cfg/pki/create_tsa_certs'
sh './tests/external_test.sh'
}
2017-04-23 18:10:40 +02:00
},
2017-04-25 09:58:11 +02:00
"FreeBSD 11": {
2017-04-27 22:13:33 +02:00
node(label: 'freebsd-11') {
sh 'git config --global user.email "jenkins@kakwa.fr"'
sh 'git config --global user.name "jenkins@kakwa.fr"'
git 'https://github.com/kakwa/uts-server'
sh 'git clean -fdx'
sh 'cmake . -DBUNDLE_CIVETWEB=ON'
sh 'make -j4'
sh './tests/cfg/pki/create_tsa_certs'
sh './tests/external_test.sh'
}
2017-04-23 18:10:40 +02:00
},
2017-04-25 09:58:11 +02:00
"CentOS 7": {
2017-04-27 22:13:33 +02:00
node(label: 'centos-7') {
sh 'git config --global user.email "jenkins@kakwa.fr"'
sh 'git config --global user.name "jenkins@kakwa.fr"'
git 'https://github.com/kakwa/uts-server'
sh 'git clean -fdx'
sh 'export CXX=/usr/bin/clang++; export CC=/usr/bin/clang; cmake . -DBUNDLE_CIVETWEB=ON'
sh 'export CXX=/usr/bin/clang++; export CC=/usr/bin/clang; make -j4'
sh './tests/cfg/pki/create_tsa_certs'
sh './tests/external_test.sh'
}
2017-04-25 01:12:04 +02:00
},
2017-04-25 09:58:11 +02:00
"Debian 8": {
2017-04-27 22:13:33 +02:00
node(label: 'debian-8') {
sh 'git config --global user.email "jenkins@kakwa.fr"'
sh 'git config --global user.name "jenkins@kakwa.fr"'
git 'https://github.com/kakwa/uts-server'
sh 'git clean -fdx'
sh 'cmake . -DBUNDLE_CIVETWEB=ON'
sh 'make -j4'
sh './tests/cfg/pki/create_tsa_certs'
sh './tests/external_test.sh'
}
2017-04-23 18:10:40 +02:00
}
)
}
}
}
2017-04-27 21:59:03 +02:00
environment {
GIT_SSL_NO_VERIFY = 'true'
CIVETWEB_GITURL = 'https://gogs.kakwa.fr/kakwa/civetweb/'
}
2017-04-27 22:13:33 +02:00
}