.gitlab-ci.yml: use parallel builds

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2020-02-13 21:31:44 +01:00
parent 243c5e9fa2
commit fc901e03c4

View File

@@ -10,6 +10,7 @@ variables:
CENTOS8_BUILD: buildenv-centos8
CENTOS7_BUILD: buildenv-centos7
CENTOS6_BUILD: buildenv-centos6
JOBS: 2
Build/Debian:
stage: testing
@@ -17,7 +18,7 @@ Build/Debian:
script:
- chmod -R o-w tests/data/raddb
- git submodule update --init && autoreconf -fvi &&
./configure --without-nuttcp-tests --without-docker-tests && make -j$(nproc) && make check -j$(nproc)
./configure --without-nuttcp-tests --without-docker-tests && make -j$JOBS && make check -j$JOBS
tags:
- shared
- linux
@@ -36,7 +37,7 @@ Build/Ubuntu:
script:
- git submodule update --init && autoreconf -fvi
- ./configure --without-nuttcp-tests --without-docker-tests
- make -j$(nproc) && make check -j$(nproc)
- make -j$JOBS && make check -j$JOBS
tags:
- shared
- linux
@@ -54,7 +55,7 @@ Build/Centos8:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$CENTOS8_BUILD
script:
- git submodule update --init && autoreconf -fvi &&
./configure --without-http-parser && make -j$(nproc) && make check -j$(nproc)
./configure --without-http-parser && make -j$JOBS && make check -j$JOBS
tags:
- shared
- linux
@@ -72,7 +73,7 @@ Build/Centos7:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$CENTOS7_BUILD
script:
- git submodule update --init && autoreconf -fvi &&
./configure --without-docker-tests && make -j$(nproc) && make check -j$(nproc)
./configure --without-docker-tests && make -j$JOBS && make check -j$JOBS
tags:
- shared
- linux
@@ -123,7 +124,7 @@ Coverity:
- tar xfz /tmp/coverity_tool.tgz
- git submodule update --init && autoreconf -fvi
- CFLAGS="-g -O0" ./configure --disable-maintainer-mode --without-docker-tests --with-werror
- cov-analysis-linux64-*/bin/cov-build --dir cov-int make -j$(nproc)
- cov-analysis-linux64-*/bin/cov-build --dir cov-int make -j$JOBS
- tar cfz cov-int.tar.gz cov-int
- curl https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME
--form token=$COVERITY_SCAN_TOKEN --form email=n.mavrogiannopoulos@gmail.com
@@ -149,7 +150,7 @@ Build/Fedora:
- chmod -R o-w tests/data/raddb
- git submodule update --init && autoreconf -fvi
- CFLAGS="-g -O0" ./configure --disable-maintainer-mode --without-docker-tests --with-werror --enable-code-coverage --enable-kerberos-tests
- make -j$(nproc) && make check -j$(nproc) COVERAGE=1
- make -j$JOBS && make check -j$JOBS COVERAGE=1
- make files-update && make dist && make local-code-coverage-output
tags:
- shared
@@ -167,7 +168,7 @@ Build/Centos6:
script:
- sed -i 's/AM_PROG_AR//g' configure.ac
- git submodule update --init && autoreconf -fvi
- CFLAGS="$CFLAGS -I/usr/include/libev -I/usr/include/gnutls30" LIBGNUTLS_LIBS="-L/usr/lib64/gnutls30/ -lgnutls" PKG_CONFIG_LIBDIR="/usr/lib64/gnutls30/pkgconfig:/usr/lib64/pkgconfig" ./configure --disable-systemd --enable-local-libopts --without-docker-tests && make && make check -j$(nproc)
- CFLAGS="$CFLAGS -I/usr/include/libev -I/usr/include/gnutls30" LIBGNUTLS_LIBS="-L/usr/lib64/gnutls30/ -lgnutls" PKG_CONFIG_LIBDIR="/usr/lib64/gnutls30/pkgconfig:/usr/lib64/pkgconfig" ./configure --disable-systemd --enable-local-libopts --without-docker-tests && make && make check -j$JOBS
tags:
- shared
- linux
@@ -185,7 +186,7 @@ Build/minimal:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$CENTOS7_BUILD
script:
- git submodule update --init && autoreconf -fvi &&
./configure --without-docker-tests --without-libnl --without-liboath --without-pam --without-radius --without-utmp --without-libwrap --without-http-parser --without-lz4 --without-gssapi --without-pcl-lib --without-protobuf && make -j$(nproc) && make check -j$(nproc) XFAIL_TESTS="lz4-compression"
./configure --without-docker-tests --without-libnl --without-liboath --without-pam --without-radius --without-utmp --without-libwrap --without-http-parser --without-lz4 --without-gssapi --without-pcl-lib --without-protobuf && make -j$JOBS && make check -j$JOBS XFAIL_TESTS="lz4-compression"
tags:
- shared
- linux
@@ -206,7 +207,7 @@ Build/minimal:
script:
- chmod o-w tests/data/raddb
- git submodule update --init && autoreconf -fvi && CFLAGS="-fsanitize=address -g -O2" LDFLAGS="-static-libasan"
./configure --without-pam --without-docker-tests && make -j$(nproc) && make check -j$(nproc) VERBOSE=1
./configure --without-pam --without-docker-tests && make -j$JOBS && make check -j$JOBS VERBOSE=1
tags:
- shared
- linux
@@ -225,7 +226,7 @@ ubsan/Fedora:
script:
- chmod -R o-w tests/data/raddb
- git submodule update --init && autoreconf -fvi && CFLAGS="-fsanitize=undefined -fsanitize=bool -fsanitize=alignment -fsanitize=null -fsanitize=bounds-strict -fsanitize=enum -fno-sanitize-recover -g -O2"
./configure --without-docker-tests && make -j$(nproc) && make check -j$(nproc)
./configure --without-docker-tests && make -j$JOBS && make check -j$JOBS
tags:
- shared
- linux
@@ -244,7 +245,7 @@ static-analyzers/Fedora:
script:
- autoreconf -fvi
- scan-build ./configure
- scan-build --status-bugs -o scan-build-src make -j$(nproc)
- scan-build --status-bugs -o scan-build-src make -j$JOBS
- cppcheck --force -q -Isrc/ -Isrc/occtl -Igl/ -I. --error-exitcode=1 src/ -i src/inih
tags:
- shared
@@ -262,7 +263,7 @@ Build/FreeBSD:
script:
- git submodule update --init && sh autogen.sh && mkdir build
- cd build && LIBS="-L/usr/local/lib" ../configure --disable-nls --without-root-tests &&
gmake -j$(sysctl hw.ncpu | awk '{print $2}') && gmake check -j$(sysctl hw.ncpu | awk '{print $2}')
gmake -j$JOBS && gmake check -j$JOBS
tags:
- freebsd
only: