Skip to content

Commit

Permalink
Added Jenkinsfile for Continuous Integration configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilien Bauer committed Feb 13, 2020
1 parent bfc06c3 commit b93009f
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
pipeline {
agent none
stages{
stage('OpenScop'){
matrix{
agent{ label "${OS}" }
axes{
axis{
name 'OS'
values 'Ubuntu', 'macOS', 'CentOS', 'fedora', 'Debian'
}
axis{
name 'BuildSystem'
values 'GNU Autotools'//, 'CMake'
}
}
stages{
stage('Tools'){
steps{
script{
if(env.OS == 'macOS')
sh 'brew install automake libtool'
if(env.OS == 'CentOS')
sh 'sudo yum install gmp-devel -y'
if(env.OS == 'fedora')
sh 'sudo dnf install gmp-devel -y'
if(env.OS == 'Debian')
sh 'sudo apt install autoconf libtool libgmp-dev make -y'
}
}
}
stage('Build'){
steps{
script{
if(env.BuildSystem == 'GNU Autotools')
sh './autogen.sh && ./configure && make -j'
if(env.BuildSystem == 'CMake')
sh 'mkdir build && cd build && cmake .. && cmake --build'
}
}
}
stage('Test'){
steps{
script {
if(env.BuildSystem == 'GNU Autotools')
sh 'make check -j'
if(env.BuildSystem == 'CMake')
sh 'cd build && cmake --build . --target check'
}
}
}
}
}
}
}
}

0 comments on commit b93009f

Please sign in to comment.