2017-12-03 22:47:31 +03:00
|
|
|
sudo: required
|
2018-03-10 00:01:36 +03:00
|
|
|
|
2017-12-03 22:47:31 +03:00
|
|
|
language: c
|
2018-03-08 00:07:01 +03:00
|
|
|
|
2018-04-10 00:16:38 +03:00
|
|
|
env:
|
|
|
|
global:
|
2018-05-03 00:12:01 +03:00
|
|
|
- OPENSSL_INSTALL_DIR="${HOME}/opt"
|
2018-08-12 18:18:23 +03:00
|
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
|
|
# via the "travis encrypt" command using the project repo's public key
|
|
|
|
- secure: "jw9uSG1d409UIGvURofaOm5Ajs0/cqMi318SyRjP0BEznxBlp/+rzEhu83PRZDp/VACTmUugh6c+dcxSlICofzMRqhIjwvxedCpPprqR4nnWlocxon/MiOrgufeH18B5mEJhE5bCGzoGCMNkpWRXukNg7AOApEuvgkiIi6zGNrlGO7AVtfGO+OeZzi3bgh1JRDP2gfG13K5fLVPEmEYXSMAYBrH/P6vcadjPmnV0/AV4sDojkYh95Iw4VV9izUrBQ42ocp2k5tnvODEnFpIzUIjq5Ctas3Q7/yCknfcml31kj1qRXuDFx8h8Elcky/HulT3vrocPaw16JSxm2E6UYHgb7hHxXh+s55F+GvpPBYvueLHd8A0XboTdt5FMTeDRmGBHrgJC28HZffWLMCcOwSIAUk+YRkEGTm3nsApw0/CIvDZx4g1l3MY4BeNhCJTrB/S/Ewdg7kxiyZEtUP3YeYTTqt7Xuqh07LHwzX36EIxVlIvS3nnZrgXpNx97mhUoHj1RxBAFGDUyjUrwJI3ssnzoIEHjUGACtki0w+xVXdJAT9xa6pcAaUx+Hp8uyCaxQPwXmN9W6A9LCtZ3bZPDt6wMC5KC/mlUaZnQO7zpcQ9IPBDaRVxc1pMpE6RkDRrYI+wder5pwzsie4YteNtnaT2b9aZqHzS8oemlASwZbjA="
|
2018-04-10 00:16:38 +03:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2018-08-05 17:42:05 +03:00
|
|
|
- env: OPENSSL_VERSION="1.0.2o" BUILD_DEB="1"
|
2018-04-10 00:16:38 +03:00
|
|
|
os: linux
|
|
|
|
compiler: gcc
|
|
|
|
- env: OPENSSL_VERSION="1.1.0f"
|
|
|
|
os: linux
|
|
|
|
compiler: gcc
|
2018-08-12 18:18:23 +03:00
|
|
|
- env: OPENSSL_VERSION="1.0.2o" RUN_COVERITY="1"
|
2018-04-10 00:16:38 +03:00
|
|
|
os: linux
|
|
|
|
compiler: clang
|
|
|
|
- env: OPENSSL_VERSION="1.1.0f"
|
|
|
|
os: linux
|
|
|
|
compiler: clang
|
2018-05-03 00:12:01 +03:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2018-08-01 14:56:57 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ${HOME}/Library/Caches/Homebrew
|
2018-05-29 00:19:04 +03:00
|
|
|
before_install:
|
2018-08-01 14:24:13 +03:00
|
|
|
- brew update && brew upgrade
|
2018-05-29 00:19:04 +03:00
|
|
|
script:
|
|
|
|
- ./configure
|
|
|
|
- make -C tmp
|
2018-08-12 20:22:51 +03:00
|
|
|
- otool -L build/vpnserver/vpnserver
|
2018-05-29 00:19:04 +03:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
2018-08-05 17:42:05 +03:00
|
|
|
packages: [ debhelper, devscripts, fakeroot, cmake3, dh-exec ]
|
2018-04-10 00:16:38 +03:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- download-cache
|
|
|
|
- ${HOME}/opt
|
2018-03-10 00:01:36 +03:00
|
|
|
|
2018-05-03 00:12:01 +03:00
|
|
|
before_install:
|
2018-05-29 00:19:04 +03:00
|
|
|
- bash .ci/build-openssl.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
2018-05-03 00:12:01 +03:00
|
|
|
|
2018-08-12 18:18:23 +03:00
|
|
|
before_script:
|
|
|
|
- .ci/coverity.sh
|
|
|
|
|
2018-03-10 00:01:36 +03:00
|
|
|
script:
|
2018-07-31 12:49:55 +03:00
|
|
|
- export OPENSSL_ROOT_DIR=${OPENSSL_INSTALL_DIR}
|
2018-05-29 00:19:04 +03:00
|
|
|
- export LD_LIBRARY_PATH="${HOME}/opt/lib:${LD_LIBRARY_PATH:-}"
|
|
|
|
- export CFLAGS="-I${HOME}/opt/include"
|
|
|
|
- export LDFLAGS="-L${HOME}/opt/lib"
|
|
|
|
- ./configure
|
|
|
|
- make -C tmp
|
2018-08-12 20:22:51 +03:00
|
|
|
- ldd build/vpnserver/vpnserver
|
2018-08-10 00:59:43 +03:00
|
|
|
- if [ "${BUILD_DEB}" = "1" ]; then make package -C tmp; fi
|