2017-12-03 22:47:31 +03:00
|
|
|
sudo: required
|
2019-04-21 22:54:39 +03:00
|
|
|
dist: xenial
|
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-04-10 00:16:38 +03:00
|
|
|
|
2019-07-17 09:58:30 +03:00
|
|
|
addons:
|
|
|
|
sonarcloud:
|
|
|
|
organization: "softethervpn"
|
|
|
|
|
2018-04-10 00:16:38 +03:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-07-17 10:05:51 +03:00
|
|
|
- env: OPENSSL_VERSION="1.0.2s" BUILD_DEB="1"
|
2018-04-10 00:16:38 +03:00
|
|
|
os: linux
|
|
|
|
compiler: gcc
|
2019-07-17 10:05:51 +03:00
|
|
|
- env: RUN_SONARCLOUD=1 OPENSSL_VERSION="1.1.1c"
|
2018-04-10 00:16:38 +03:00
|
|
|
os: linux
|
|
|
|
compiler: gcc
|
2019-07-17 10:05:51 +03:00
|
|
|
- env: OPENSSL_VERSION="1.1.1c" LABEL="linux-ppc64le" CMAKE_VERSION="3.9.6"
|
2019-03-15 22:30:54 +03:00
|
|
|
os: linux-ppc64le
|
|
|
|
compiler: gcc
|
|
|
|
install:
|
|
|
|
- wget https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}.tar.gz && tar -xzf cmake-${CMAKE_VERSION}.tar.gz
|
|
|
|
- cd cmake-${CMAKE_VERSION}
|
|
|
|
- ./bootstrap > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
|
|
|
- sudo make install > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
|
|
|
- cd ..
|
2019-07-17 10:05:51 +03:00
|
|
|
- env: OPENSSL_VERSION="1.1.1c"
|
2018-04-10 00:16:38 +03:00
|
|
|
os: linux
|
|
|
|
compiler: clang
|
2019-07-17 10:05:51 +03:00
|
|
|
- env: LIBRESSL_VERSION="2.9.2"
|
2018-11-10 10:32:21 +03:00
|
|
|
os: linux
|
|
|
|
compiler: gcc
|
|
|
|
before_install:
|
|
|
|
- bash .ci/build-libressl.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
2018-09-26 05:21:49 +03:00
|
|
|
- env: LABEL="check stb files"
|
|
|
|
os: linux
|
2018-09-23 20:54:57 +03:00
|
|
|
language: csharp
|
|
|
|
mono: none
|
2019-04-21 22:54:39 +03:00
|
|
|
dotnet: 2.2.203
|
2018-09-23 20:54:57 +03:00
|
|
|
before_install:
|
|
|
|
- true
|
|
|
|
script:
|
|
|
|
- cd developer_tools/stbchecker
|
|
|
|
- dotnet run ../../src/bin/hamcore
|
2018-05-03 00:12:01 +03:00
|
|
|
- os: osx
|
|
|
|
compiler: clang
|
2018-05-29 00:19:04 +03:00
|
|
|
before_install:
|
2018-11-10 10:32:21 +03:00
|
|
|
- true
|
2018-05-29 00:19:04 +03:00
|
|
|
script:
|
|
|
|
- ./configure
|
2020-07-20 21:33:36 +03:00
|
|
|
- make -C build
|
2018-10-18 03:02:17 +03:00
|
|
|
- otool -L build/vpnserver
|
2018-10-29 21:21:08 +03:00
|
|
|
- .ci/memory-leak-test.sh
|
2018-05-29 00:19:04 +03:00
|
|
|
|
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-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 CFLAGS="-I${HOME}/opt/include"
|
2020-10-10 22:25:45 +03:00
|
|
|
- export LDFLAGS="-L${HOME}/opt/lib -Wl,-rpath,${HOME}/opt/lib"
|
2019-07-17 09:58:30 +03:00
|
|
|
- .ci/sonarcloud.sh
|
2018-05-29 00:19:04 +03:00
|
|
|
- ./configure
|
2020-07-20 21:33:36 +03:00
|
|
|
- make -j $(nproc || sysctl -n hw.ncpu || echo 4) -C build
|
2018-10-18 03:02:17 +03:00
|
|
|
- ldd build/vpnserver
|
2020-07-20 21:33:36 +03:00
|
|
|
- if [ "${BUILD_DEB}" = "1" ]; then make package -C build; fi
|
2018-10-29 21:21:08 +03:00
|
|
|
- .ci/memory-leak-test.sh
|