Skip to content

Commit

Permalink
travis: add build with ovpn3 enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Lev Stipakov <[email protected]>
  • Loading branch information
lstipakov committed Jan 7, 2020
1 parent d037cf6 commit e082136
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .travis-build-jsonc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -e

git clone https://github.com/json-c/json-c.git
cd json-c

mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=False -DDISABLE_WERROR=True -DCMAKE_INSTALL_PREFIX=/usr/local/i686-w64-mingw32 -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc -DCMAKE_SYSTEM_NAME="Windows" ..
make V=1
sudo make install

cd .. && rm -rf build

mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=False -DDISABLE_WERROR=True -DCMAKE_INSTALL_PREFIX=/usr/local/x86_64-w64-mingw32 -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_SYSTEM_NAME="Windows" ..
make V=1
sudo make install

cd .. && rm -rf build

cd ..
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ matrix:
env: CHOST=i686-w64-mingw32 CONFIG=""
- compiler: gcc
env: CHOST=x86_64-w64-mingw32 CONFIG=""
- compiler: gcc
env: CHOST=i686-w64-mingw32 CONFIG="--enable-ovpn3"
- compiler: gcc
env: CHOST=x86_64-w64-mingw32 CONFIG="--enable-ovpn3"
- compiler: gcc
env: CHOST=i686-w64-mingw32 CONFIG="--disable-password-change"
- compiler: gcc
Expand All @@ -25,13 +29,14 @@ matrix:

addons:
apt:
packages: [ gcc-mingw-w64 ]
packages: [ gcc-mingw-w64, mingw-w64-tools, doxygen ]

before_script:
- unset CC; unset CXX

script:
- if [[ $CONFIG != *"--disable-password-change"* ]]; then . .travis-build-openssl.sh; fi
- if [[ $CONFIG == *"--enable-ovpn3"* ]]; then . .travis-build-jsonc.sh; fi
- autoreconf -i -v
- ./configure --prefix=/ --libdir=/lib --host=$CHOST --build=x86_64-pc-linux-gnu --program-prefix='' $CONFIG && make
# build from tarball
Expand Down

0 comments on commit e082136

Please sign in to comment.