forked from OpenVPN/openvpn-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (29 loc) · 1.06 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
sudo: required
dist: trusty
os: linux
language: cpp
compiler: gcc
matrix:
fast_finish: true
include:
- compiler: ": Win32"
env: CHOST=i686-w64-mingw32 m=mingw
- compiler: ": Win64"
env: CHOST=x86_64-w64-mingw32 m=mingw64
exclude:
- compiler: gcc
install:
- sudo apt-get update -qq
- sudo apt-get install -qq -y gcc-mingw-w64
- sudo apt-get install -qq -y man2html
before_script:
- unset CC; unset CXX
script:
- mkdir image
- wget http://www.openssl.org/source/openssl-1.0.1q.tar.gz && tar zxf openssl-1.0.1q.tar.gz && cd openssl-1.0.1q
- ./Configure --prefix=/ --cross-compile-prefix=${CHOST}- shared $m no-multilib no-capieng --openssldir=/etc/ssl --libdir=/lib -static-libgcc
- make install INSTALL_PREFIX="${HOME}/image" INSTALLTOP="/" MANDIR="/tmp"
- cd .. && autoreconf -i -v
- export OPENSSL_CRYPTO_CFLAGS="-I${HOME}/image/include"
- export OPENSSL_CRYPTO_LIBS="-L${HOME}/image/lib -lcrypto"
- ./configure --prefix=/ --libdir=/lib --host=$CHOST --build=x86_64-pc-linux-gnu --program-prefix='' && make