forked from OpenVPN/openvpn-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (41 loc) · 1.36 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
sudo: required
dist: trusty
os: linux
language: cpp
compiler: gcc
env:
global:
- OPENSSL_VERSION=1.0.2k
matrix:
fast_finish: true
include:
- compiler: ": Win32"
env: CHOST=i686-w64-mingw32 CONFIG=""
- compiler: ": Win64"
env: CHOST=x86_64-w64-mingw32 CONFIG=""
- compiler: ": Win32"
env: CHOST=i686-w64-mingw32 CONFIG="--disable-password-change"
- compiler: ": Win64"
env: CHOST=x86_64-w64-mingw32 CONFIG="--disable-password-change"
exclude:
- compiler: gcc
addons:
apt:
packages: [ cppcheck ]
install:
- sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu xenial main universe"
- sudo apt-get update
- sudo apt-get -y install dpkg gcc-mingw-w64
before_script:
- unset CC; unset CXX
script:
- cppcheck --force --enable=warning,missingInclude --error-exitcode=1 . >build.log 2>&1 || (cat build.log && exit 1)
- if [[ $CONFIG != *"--disable-password-change"* ]]; then . .travis-build-openssl.sh; fi
- autoreconf -i -v
- ./configure --prefix=/ --libdir=/lib --host=$CHOST --build=x86_64-pc-linux-gnu --program-prefix='' $CONFIG && make
# build from tarball
- make distdir=dist dist && tar xvf dist.tar.gz && cd dist
- ./configure --prefix=/ --libdir=/lib --host=$CHOST --build=x86_64-pc-linux-gnu --program-prefix='' $CONFIG && make
cache:
directories:
- download-cache