mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-26 11:29:53 +03:00
Merge PR #947: travis-ci: add sonar-scan, update openssl, libressl
This commit is contained in:
commit
24f426162c
12
.ci/sonarcloud.sh
Executable file
12
.ci/sonarcloud.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
RUN_SONARCLOUD="${RUN_SONARCLOUD:-0}"
|
||||||
|
|
||||||
|
if [ "${RUN_SONARCLOUD}" = "1" ] && [ ! -z ${SONAR_TOKEN+x} ]; then
|
||||||
|
./configure
|
||||||
|
build-wrapper-linux-x86-64 --out-dir bw-output make -C tmp
|
||||||
|
sonar-scanner -Dsonar.projectKey=SoftEtherVPN_SoftEtherVPN -Dsonar.organization=softethervpn -Dsonar.sources=. -Dsonar.cfamily.build-wrapper-output=bw-output -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONAR_TOKEN}
|
||||||
|
else
|
||||||
|
echo "Skipping sonar-scan because \$RUN_SONARCLOUD != \"1\" or \$SONAR_TOKEN is not set"
|
||||||
|
fi
|
17
.travis.yml
17
.travis.yml
@ -7,15 +7,19 @@ env:
|
|||||||
global:
|
global:
|
||||||
- OPENSSL_INSTALL_DIR="${HOME}/opt"
|
- OPENSSL_INSTALL_DIR="${HOME}/opt"
|
||||||
|
|
||||||
|
addons:
|
||||||
|
sonarcloud:
|
||||||
|
organization: "softethervpn"
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- env: OPENSSL_VERSION="1.0.2o" BUILD_DEB="1"
|
- env: OPENSSL_VERSION="1.0.2s" BUILD_DEB="1"
|
||||||
os: linux
|
os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
- env: OPENSSL_VERSION="1.1.0f"
|
- env: RUN_SONARCLOUD=1 OPENSSL_VERSION="1.1.1c"
|
||||||
os: linux
|
os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
- env: OPENSSL_VERSION="1.1.0f" LABEL="linux-ppc64le" CMAKE_VERSION="3.9.6"
|
- env: OPENSSL_VERSION="1.1.1c" LABEL="linux-ppc64le" CMAKE_VERSION="3.9.6"
|
||||||
os: linux-ppc64le
|
os: linux-ppc64le
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
install:
|
install:
|
||||||
@ -24,13 +28,13 @@ matrix:
|
|||||||
- ./bootstrap > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
- ./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)
|
- sudo make install > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
|
||||||
- cd ..
|
- cd ..
|
||||||
- env: OPENSSL_VERSION="1.0.2o" RUN_COVERITY="1"
|
- env: OPENSSL_VERSION="1.0.2s" RUN_COVERITY="1"
|
||||||
os: linux
|
os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
- env: OPENSSL_VERSION="1.1.0f"
|
- env: OPENSSL_VERSION="1.1.1c"
|
||||||
os: linux
|
os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
- env: LIBRESSL_VERSION="2.8.2"
|
- env: LIBRESSL_VERSION="2.9.2"
|
||||||
os: linux
|
os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
before_install:
|
before_install:
|
||||||
@ -70,6 +74,7 @@ script:
|
|||||||
- export LDFLAGS="-L${HOME}/opt/lib"
|
- export LDFLAGS="-L${HOME}/opt/lib"
|
||||||
- echo "check_certificate = off" > ~/.wgetrc
|
- echo "check_certificate = off" > ~/.wgetrc
|
||||||
- .ci/coverity.sh
|
- .ci/coverity.sh
|
||||||
|
- .ci/sonarcloud.sh
|
||||||
- ./configure
|
- ./configure
|
||||||
- make -j $(nproc || sysctl -n hw.ncpu || echo 4) -C tmp
|
- make -j $(nproc || sysctl -n hw.ncpu || echo 4) -C tmp
|
||||||
- ldd build/vpnserver
|
- ldd build/vpnserver
|
||||||
|
Loading…
Reference in New Issue
Block a user