2018-08-07 10:27:11 +03:00
|
|
|
.ubuntu: &ubuntu_def
|
2018-08-16 13:26:17 +03:00
|
|
|
variables:
|
2018-10-11 23:03:12 +03:00
|
|
|
CMAKE_VERSION: 3.9.6
|
2018-12-01 21:19:18 +03:00
|
|
|
except:
|
|
|
|
changes:
|
|
|
|
- .appveyor.yml
|
|
|
|
- .travis.yml
|
2019-03-11 20:43:35 +03:00
|
|
|
- .azure-pipelines.yml
|
2019-04-02 09:16:36 +03:00
|
|
|
- .cirrus.yml
|
2018-08-07 10:27:11 +03:00
|
|
|
before_script:
|
2018-08-13 23:53:26 +03:00
|
|
|
- REPOSITORY="$PWD" && cd ..
|
2021-02-04 08:10:38 +03:00
|
|
|
- apt-get update && apt-get install -y dpkg-dev wget g++ gcc libncurses5-dev libreadline-dev libsodium-dev libssl-dev make zlib1g-dev git file
|
2018-08-16 13:26:17 +03:00
|
|
|
- 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 && make install
|
2018-08-13 23:53:26 +03:00
|
|
|
- cd "$REPOSITORY" && git submodule update --init --recursive
|
2018-08-07 10:27:11 +03:00
|
|
|
script:
|
2018-08-10 18:06:14 +03:00
|
|
|
- ./configure
|
2020-07-20 21:33:36 +03:00
|
|
|
- make package -C build
|
2018-10-22 08:55:12 +03:00
|
|
|
- dpkg -i build/softether-vpn*.deb
|
2018-10-29 23:30:11 +03:00
|
|
|
- .ci/memory-leak-test.sh
|
2018-08-07 10:27:11 +03:00
|
|
|
|
|
|
|
trusty:
|
|
|
|
<<: *ubuntu_def
|
|
|
|
image: ubuntu:trusty
|
|
|
|
|
2018-10-11 23:03:12 +03:00
|
|
|
precise:
|
|
|
|
<<: *ubuntu_def
|
|
|
|
image: ubuntu:precise
|
2018-08-07 10:27:11 +03:00
|
|
|
|
2019-05-10 15:54:16 +03:00
|
|
|
# illumos gitlab-runner maintained by @hww3
|
2019-04-26 17:36:11 +03:00
|
|
|
build_illumos:
|
2019-07-06 13:56:51 +03:00
|
|
|
only:
|
|
|
|
- master@SoftEther/SoftEtherVPN
|
2019-04-26 17:36:11 +03:00
|
|
|
tags:
|
|
|
|
- illumos
|
|
|
|
script:
|
|
|
|
- git submodule init && git submodule update
|
|
|
|
- CMAKE_FLAGS="-DCMAKE_PREFIX_PATH=/opt/local -DCMAKE_CXX_FLAGS=-m64 -DCMAKE_C_FLAGS=-m64" ./configure
|
2020-07-20 21:33:36 +03:00
|
|
|
- gmake -C build
|
2018-11-10 20:39:22 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# flawfinder
|
|
|
|
# see https://docs.gitlab.com/ee/user/project/merge_requests/sast.html
|
|
|
|
#
|
|
|
|
sast:
|
|
|
|
image: docker:stable
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay2
|
|
|
|
allow_failure: true
|
|
|
|
services:
|
|
|
|
- docker:stable-dind
|
|
|
|
script:
|
|
|
|
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
|
|
|
- docker run
|
|
|
|
--env SAST_CONFIDENCE_LEVEL="${SAST_CONFIDENCE_LEVEL:-3}"
|
|
|
|
--volume "$PWD:/code"
|
|
|
|
--volume /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
"registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code
|
|
|
|
artifacts:
|
|
|
|
paths: [gl-sast-report.json]
|