1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-26 19:39:53 +03:00

Merge pull request #1049 from metalefty/freebsd-ci

Merge pull request #1049: Refine FreeBSD CI
This commit is contained in:
Ilya Shipitsin 2019-12-05 22:45:12 -08:00 committed by GitHub
commit 0d79b3c3b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 3 deletions

5
.ci/vpntools-check.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
set -eux
./build/vpncmd /tools /cmd:check

View File

@ -1,12 +1,30 @@
FreeBSD_task: FreeBSD_task:
freebsd_instance: freebsd_instance:
image: freebsd-12-0-release-amd64 image: freebsd-12-1-release-amd64
env: env:
ASSUME_ALWAYS_YES: TRUE # required for unattanded "pkg" invocation ASSUME_ALWAYS_YES: TRUE # required for unattanded "pkg" invocation
install_script: install_script:
- pkg install cmake gmake openssl111 git - pkg install cmake openssl111 git
- git submodule update --init --recursive - git submodule update --init --recursive
script: script:
- ./configure - ./configure
- gmake -j $(nproc || sysctl -n hw.ncpu || echo 4) -C tmp - make -j $(sysctl -n hw.ncpu || echo 4) -C tmp
- ldd build/vpnserver - ldd build/vpnserver
- .ci/memory-leak-test.sh
- .ci/vpntools-check.sh
FreeBSD_task:
freebsd_instance:
# 11-3-release doesn't boot: https://cirrus-ci.org/guide/FreeBSD/
image: freebsd-11-3-stable-amd64-v20191205
env:
ASSUME_ALWAYS_YES: TRUE # required for unattanded "pkg" invocation
install_script:
- pkg install cmake openssl111 git
- git submodule update --init --recursive
script:
- ./configure
- make -j $(sysctl -n hw.ncpu || echo 4) -C tmp
- ldd build/vpnserver
- .ci/memory-leak-test.sh
- .ci/vpntools-check.sh