2018-04-12 16:12:22 +03:00
|
|
|
variables:
|
|
|
|
BUILD_IMAGES_PROJECT: libssh/build-images
|
|
|
|
FEDORA_BUILD: buildenv-fedora
|
|
|
|
CENTOS7_BUILD: buildenv-centos7
|
2018-05-25 14:52:30 +03:00
|
|
|
TUMBLEWEED_BUILD: buildenv-tumbleweed
|
2018-06-12 16:15:20 +03:00
|
|
|
MINGW_BUILD: buildenv-mingw
|
2018-07-02 10:06:42 +03:00
|
|
|
DEBIAN_CROSS_BUILD: buildenv-debian-cross
|
2018-04-12 16:12:22 +03:00
|
|
|
|
2018-06-29 11:31:09 +03:00
|
|
|
# torture_auth fails on centos7 docker images, so we don't use -DCLIENT_TESTING=ON
|
2018-09-10 11:08:53 +03:00
|
|
|
centos7/openssl_1.0.x/x86_64:
|
2018-04-12 16:12:22 +03:00
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$CENTOS7_BUILD
|
|
|
|
script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake3
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2018-08-20 17:06:09 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-09-10 11:08:53 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
|
|
|
-DUNIT_TESTING=ON .. &&
|
2018-06-29 11:49:52 +03:00
|
|
|
make -j$(nproc) && ctest --output-on-failure
|
2018-04-12 16:12:22 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2018-06-29 17:53:14 +03:00
|
|
|
- obj/
|
2018-04-12 16:12:22 +03:00
|
|
|
|
2018-09-10 11:08:53 +03:00
|
|
|
fedora/openssl_1.1.x/x86_64:
|
2018-08-20 18:19:16 +03:00
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
|
|
|
script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2018-08-20 18:19:16 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-08-20 18:19:16 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
|
|
|
|
make -j$(nproc) && ctest --output-on-failure
|
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- obj/
|
|
|
|
|
2018-04-12 16:12:22 +03:00
|
|
|
# Address sanitizer doesn't mix well with LD_PRELOAD used in the testsuite
|
2018-09-01 10:57:00 +03:00
|
|
|
# so, this is only enabled for unit tests right now.
|
|
|
|
# TODO: add -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
|
|
|
|
fedora/address-sanitizer:
|
2018-04-12 16:12:22 +03:00
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
|
|
|
script:
|
2018-06-29 11:49:52 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
2018-09-01 19:53:33 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=AddressSanitizer
|
2018-09-10 11:08:53 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-09-01 10:57:00 +03:00
|
|
|
-DUNIT_TESTING=ON .. &&
|
2018-06-29 11:49:52 +03:00
|
|
|
make -j$(nproc) && ctest --output-on-failure
|
2018-04-12 16:12:22 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2018-06-29 17:53:14 +03:00
|
|
|
- obj/
|
2018-04-12 16:12:22 +03:00
|
|
|
|
|
|
|
fedora/undefined-sanitizer:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
|
|
|
script:
|
2018-06-29 11:49:52 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_C_FLAGS="-fsanitize=undefined -fsanitize=null -fsanitize=alignment -fno-sanitize-recover"
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-06-29 11:49:52 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON ..
|
|
|
|
&& make -j$(nproc) && ctest --output-on-failure
|
2018-04-12 16:12:22 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2018-06-29 17:53:14 +03:00
|
|
|
- obj/
|
2018-04-12 16:12:22 +03:00
|
|
|
|
2018-09-25 16:23:26 +03:00
|
|
|
fedora/csbuild:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
|
|
|
script:
|
|
|
|
- |
|
|
|
|
if [[ -z "$CI_COMMIT_BEFORE_SHA" ]]; then
|
2018-11-23 18:29:44 +03:00
|
|
|
export CI_COMMIT_BEFORE_SHA=$(git rev-parse HEAD~20)
|
2018-09-25 16:23:26 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Check if the commit exists in this branch
|
|
|
|
# This is not the case for a force push
|
|
|
|
git branch --contains $CI_COMMIT_BEFORE_SHA 2>/dev/null || export CI_COMMIT_BEFORE_SHA=$(git rev-parse HEAD^)
|
|
|
|
|
|
|
|
export CI_COMMIT_RANGE="$CI_COMMIT_BEFORE_SHA..$CI_COMMIT_SHA"
|
|
|
|
|
|
|
|
- csbuild
|
|
|
|
--build-dir=obj-csbuild
|
|
|
|
--prep-cmd="cmake -DCMAKE_BUILD_TYPE=Debug -DPICKY_DEVELOPER=ON -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON -DFUZZ_TESTING=ON @SRCDIR@"
|
|
|
|
--build-cmd "make clean && make -j$(nproc)"
|
|
|
|
--git-commit-range $CI_COMMIT_RANGE
|
|
|
|
--color
|
|
|
|
--print-current --print-fixed
|
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- obj-csbuild/
|
|
|
|
|
2018-04-12 16:12:22 +03:00
|
|
|
# That is a specific runner that we cannot enable universally.
|
|
|
|
# We restrict it to builds under the $BUILD_IMAGES_PROJECT project.
|
2018-09-10 11:08:53 +03:00
|
|
|
freebsd/x86_64:
|
2018-04-12 16:12:22 +03:00
|
|
|
image:
|
|
|
|
script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2018-08-20 17:06:09 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-06-29 12:43:51 +03:00
|
|
|
-DUNIT_TESTING=ON .. &&
|
|
|
|
make && ctest --output-on-failure
|
2018-04-12 16:12:22 +03:00
|
|
|
tags:
|
|
|
|
- freebsd
|
|
|
|
except:
|
|
|
|
- tags
|
2018-07-03 12:08:56 +03:00
|
|
|
only:
|
|
|
|
- branches@libssh/libssh-mirror
|
|
|
|
- branches@cryptomilk/libssh-mirror
|
2018-04-12 16:12:22 +03:00
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2018-06-29 17:53:14 +03:00
|
|
|
- obj/
|
2018-04-12 16:12:22 +03:00
|
|
|
|
2018-09-10 11:08:53 +03:00
|
|
|
fedora/libgcrypt/x86_64:
|
2018-04-12 16:12:22 +03:00
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
|
|
|
script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-06-29 11:49:52 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
|
|
|
|
-DWITH_GCRYPT=ON .. &&
|
|
|
|
make -j$(nproc) && ctest --output-on-failure
|
2018-04-12 16:12:22 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2018-06-29 17:53:14 +03:00
|
|
|
- obj/
|
2018-05-25 14:52:30 +03:00
|
|
|
|
2018-09-10 11:08:53 +03:00
|
|
|
fedora/mbedtls/x86_64:
|
2018-06-27 12:59:18 +03:00
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
|
|
|
script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-06-29 11:49:52 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
|
|
|
|
-DWITH_MBEDTLS=ON .. &&
|
|
|
|
make -j$(nproc) && ctest --output-on-failure
|
2018-06-27 12:59:18 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2018-06-29 17:53:14 +03:00
|
|
|
- obj/
|
2018-06-27 12:59:18 +03:00
|
|
|
|
2018-08-31 14:52:33 +03:00
|
|
|
# Unit testing only, no client and pkd testing, because cwrap is not available
|
|
|
|
# for MinGW
|
|
|
|
fedora/mingw64:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$MINGW_BUILD
|
|
|
|
script:
|
2018-09-27 09:15:16 +03:00
|
|
|
- export WINEPATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin
|
|
|
|
- export WINEDEBUG=-all
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && mingw64-cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2018-08-31 14:52:33 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-08-31 14:52:33 +03:00
|
|
|
-DUNIT_TESTING=ON .. &&
|
2018-09-27 09:15:16 +03:00
|
|
|
make -j$(nproc) &&
|
|
|
|
ctest --output-on-failure
|
2018-08-31 14:52:33 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- obj/
|
|
|
|
|
|
|
|
# Unit testing only, no client and pkd testing, because cwrap is not available
|
|
|
|
# for MinGW
|
|
|
|
fedora/mingw32:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$MINGW_BUILD
|
|
|
|
script:
|
2018-09-27 09:15:16 +03:00
|
|
|
- export WINEPATH=/usr/i686-w64-mingw32/sys-root/mingw/bin
|
|
|
|
- export WINEDEBUG=-all
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && mingw32-cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2018-08-31 14:52:33 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-08-31 14:52:33 +03:00
|
|
|
-DUNIT_TESTING=ON .. &&
|
2018-09-27 09:15:16 +03:00
|
|
|
make -j$(nproc) &&
|
|
|
|
ctest --output-on-failure
|
2018-08-31 14:52:33 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- obj/
|
|
|
|
|
|
|
|
.Debian.cross.template: &Debian_cross_template
|
|
|
|
stage: test
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$DEBIAN_CROSS_BUILD
|
|
|
|
script:
|
|
|
|
- build=$(dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
|
|
- host="${CI_JOB_NAME#*.cross.}"
|
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_C_COMPILER="$(which $host-gcc)"
|
|
|
|
-DCMAKE_CXX_COMPILER="$(which $host-g++)"
|
2018-09-10 11:08:53 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2018-08-31 14:52:33 +03:00
|
|
|
-DUNIT_TESTING=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
|
2018-09-27 19:06:23 +03:00
|
|
|
-DWITH_PCAP=ON .. &&
|
|
|
|
make -j$(nproc) &&
|
|
|
|
ctest --output-on-failure
|
2018-08-31 14:52:33 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- obj/
|
|
|
|
|
|
|
|
Debian.cross.mips-linux-gnu:
|
|
|
|
<<: *Debian_cross_template
|
|
|
|
|
2018-09-10 11:08:53 +03:00
|
|
|
tumbleweed/openssl_1.1.x/x86_64/gcc:
|
2018-05-25 14:52:30 +03:00
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
|
|
|
script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-08-08 21:56:02 +03:00
|
|
|
-DKRB5_CONFIG=/usr/lib/mit/bin/krb5-config
|
2018-06-29 11:49:52 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
|
|
|
|
make -j$(nproc) && ctest --output-on-failure
|
2018-05-25 14:52:30 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2018-06-29 17:53:14 +03:00
|
|
|
- obj/
|
2018-05-25 14:52:30 +03:00
|
|
|
|
2018-09-10 11:08:53 +03:00
|
|
|
tumbleweed/openssl_1.1.x/x86/gcc:
|
2018-08-31 14:49:54 +03:00
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
|
|
|
script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-cross-m32.cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2018-08-31 14:49:54 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-09-10 11:08:53 +03:00
|
|
|
-DUNIT_TESTING=ON .. &&
|
2018-08-31 14:49:54 +03:00
|
|
|
make -j$(nproc) && ctest --output-on-failure
|
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- obj/
|
|
|
|
|
2018-09-10 13:03:26 +03:00
|
|
|
tumbleweed/openssl_1.1.x/x86_64/gcc7:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
|
|
|
script:
|
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-09-10 13:03:26 +03:00
|
|
|
-DKRB5_CONFIG=/usr/lib/mit/bin/krb5-config
|
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
|
|
|
|
make -j$(nproc) && ctest --output-on-failure
|
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- obj/
|
|
|
|
|
|
|
|
tumbleweed/openssl_1.1.x/x86/gcc7:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
|
|
|
script:
|
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-cross-m32.cmake
|
|
|
|
-DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-09-10 13:03:26 +03:00
|
|
|
-DUNIT_TESTING=ON .. &&
|
|
|
|
make -j$(nproc) && ctest --output-on-failure
|
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- obj/
|
|
|
|
|
2018-09-10 11:08:53 +03:00
|
|
|
tumbleweed/openssl_1.1.x/x86_64/clang:
|
2018-08-20 18:19:16 +03:00
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
|
|
|
script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-08-20 18:19:16 +03:00
|
|
|
-DKRB5_CONFIG=/usr/lib/mit/bin/krb5-config
|
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
|
|
|
|
make -j$(nproc) && ctest --output-on-failure
|
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- obj/
|
|
|
|
|
2018-08-22 09:28:01 +03:00
|
|
|
tumbleweed/docs:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
|
|
|
script:
|
|
|
|
- mkdir -p obj && cd obj && cmake .. && make docs
|
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- obj/
|
|
|
|
|
2018-05-25 14:52:30 +03:00
|
|
|
tumbleweed/undefined-sanitizer:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
|
|
|
script:
|
2018-06-29 11:49:52 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
2018-09-26 17:55:28 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=UndefinedSanitizer
|
2018-09-10 11:08:53 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-09-10 11:08:53 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
|
|
|
|
make -j$(nproc) && ctest --output-on-failure
|
2018-05-25 14:52:30 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2018-06-29 17:53:14 +03:00
|
|
|
- obj/
|
2018-05-25 14:52:30 +03:00
|
|
|
|
|
|
|
tumbleweed/static-analysis:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
|
|
|
script:
|
|
|
|
- export CCC_CC=clang
|
|
|
|
- export CCC_CXX=clang++
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && scan-build cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=Debug
|
|
|
|
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-09-10 11:08:53 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
|
2018-05-25 14:52:30 +03:00
|
|
|
scan-build --status-bugs -o scan make -j$(nproc)
|
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2018-06-29 17:53:14 +03:00
|
|
|
- obj/scan
|