-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
79 lines (71 loc) · 2.67 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
language: c
sudo: false
env:
global:
- PREFIX=$HOME/target
- PATH=$PREFIX/bin:$PATH
- INSECURE=true
- ANDROID_API=android-19
#For the newer version of Cryptopp setenv-android.sh
- AOSP_API=$ANDROID_API
compiler:
- clang
- gcc
addons:
apt:
packages:
#See https://github.com/JakeWharton/sdk-manager-plugin/issues/13
- libstdc++6:i386
- lib32z1
- expect
- libpcsclite-dev
#For makedepend, needed when building OpenSSL
- xutils-dev
# For supporting C++11
- gcc-4.8
- g++-4.8
sources:
# For g++-4.8 (needed for C++11 support)
- ubuntu-toolchain-r-test
before_install:
- wget --no-check-certificate https://cmake.org/files/v3.0/cmake-3.0.2.tar.gz
- tar xzf cmake-3.0.2.tar.gz
- cd cmake-3.0.2
- ./bootstrap --system-curl --prefix=$PREFIX
- make > /dev/null
- make install
- cd -
- wget https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
- tar xzf android-sdk_r24.4.1-linux.tgz
- export ANDROID_SDK_ROOT=$PWD/android-sdk-linux/
- export ANDROID_HOME=$ANDROID_SDK_ROOT
- echo "y" | android-sdk-linux/tools/android update sdk -s --no-ui --all --filter platform-tools
- echo "y" | android-sdk-linux/tools/android update sdk -s --no-ui --all --filter android-19
- echo "y" | android-sdk-linux/tools/android update sdk -s --no-ui --all --filter build-tools-19.1.0
- wget https://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin
- chmod +x android-ndk-r10e-linux-x86_64.bin
- ./android-ndk-r10e-linux-x86_64.bin | egrep -v ^Extracting
- export ANDROID_NDK_ROOT=$PWD/android-ndk-r10e/
- wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.0/wxWidgets-3.1.0.tar.bz2
- tar -xjf wxWidgets-3.1.0.tar.bz2
- cd wxWidgets-3.1.0
- mkdir gtk-build
- cd gtk-build
- ../configure --enable-unicode --enable-debug --prefix=$PREFIX
- make > /dev/null
- make install
- cd ../..
- cp $PREFIX/share/aclocal/wxwin.m4 eIDClientCore/m4/
install:
- make cryptopp libexpat openssl libcurl asn1c PREFIX=$PREFIX INSECURE=$INSECURE
script:
- make eIDClient PREFIX=$PREFIX INSECURE=$INSECURE
- if [ "$CC" = "gcc" ]; then export CHANGE_GCC_FOR_CMAKE="true"; fi
- export CC=
- make -C eIDClientCore/android/ ANDROID_SDK_ROOT=$ANDROID_SDK_ROOT ANDROID_NDK_ROOT=$ANDROID_NDK_ROOT ANDROID_API=$ANDROID_API
- make -C eIDClientCore/android/eIDClientCore\ Selbstauskunft ANDROID_SDK_ROOT=$ANDROID_SDK_ROOT ANDROID_NDK_ROOT=$ANDROID_NDK_ROOT ANDROID_API=$ANDROID_API
- if [ "$CHANGE_GCC_FOR_CMAKE" = "true" ]; then export CXX="g++-4.8" CC="gcc-4.8"; else export CC="clang"; fi
- mkdir build && cd build && cmake .. && make
cache:
directories:
- $HOME/target