1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-26 19:39:53 +03:00
SoftEtherVPN/.ci/script.sh
Davide Beatrici f65ae2bf7d Replace hand-written Makefiles with CMake (#518)
* src: remove makefiles

* .gitignore: remove CMakeLists.txt

* README.md: add CMake to the required packages

* debian: add CMake to the dependencies

* Travis CI: specify Makefile directory

* Replace hand-written Makefiles with CMake
2018-05-22 22:20:41 +02:00

18 lines
364 B
Bash

#!/bin/bash
set -eux
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
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
ldd bin/vpnserver/vpnserver
dh build-arch
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
./configure
make -C tmp
else
exit 1
fi