5 //Using a matrix section for extensibility
7 //The work is done on a slave with the indicated OS
11 //The list of target OS
13 values 'Ubuntu', 'macOS', 'CentOS', 'fedora', 'Debian'
16 //Here is the actual work to be done
18 //Install whatever dependency the project may have
23 sh 'brew install automake libtool'
24 if(env.OS == 'CentOS')
25 sh 'sudo yum install gmp-devel -y'
26 if(env.OS == 'fedora')
27 sh 'sudo dnf install gmp-devel -y'
28 if(env.OS == 'Debian')
29 sh 'sudo apt install autoconf libtool libgmp-dev make -y'
36 sh './autogen.sh && ./configure && make -j'
39 //Execute the test suites