This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
52 lines (52 loc) · 1.48 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
env:
matrix:
- ARCH=x86_64
- ARCH=i686
CFLAGS=-m32
CPPFLAGS=-m32
CXXFLAGS=-m32
LDFLAGS=-m32
HOSTBUILD="--host=i686-pc-linux-gnu --build=x86_64-pc-linux-gnu"
global:
- ZMQ_VERSION=4.2.1
language: cpp
sudo: required
dist: trusty
matrix:
fast_finish: true
before_install:
- sudo apt-get update -y
- sudo apt-get install libpgm-dev gcc-multilib g++-multilib -y
install:
- git clone -b stable --depth 1 --quiet git://github.com/jedisct1/libsodium.git
- git clone --depth 1 --quiet https://github.com/zeromq/jzmq.git
- wget https://github.com/zeromq/zeromq4-1/releases/download/v4.1.5/zeromq-${ZMQ_VERSION}.tar.gz
- tar xzvf zeromq-${ZMQ_VERSION}.tar.gz
script:
- export CPPFLAGS="$CPPFLAGS -I${HOME}/${ARCH}/include"
- export LDFLAGS="$LDFLAGS -L${HOME}/${ARCH}/lib"
- cd libsodium
- ./autogen.sh
- ./configure --prefix=${HOME}/${ARCH} $HOSTBUILD
- make install
- cd ..
- cd zeromq-${ZMQ_VERSION}
- ./autogen.sh
- LDFLAGS="$LDFLAGS -lsodium" sodium_CFLAGS=${HOME}/${ARCH}/include sodium_LIBS=${HOME}/${ARCH}/libs ./configure --with-libsodium --prefix=${HOME}/${ARCH} $HOSTBUILD
- make V=1 install
- cd ..
- cd jzmq/jzmq-jni
- ./autogen.sh
- ./configure --prefix=${HOME}/${ARCH} $HOSTBUILD
- make install
- cd
- cd ${HOME}/${ARCH}/lib
- zip ${HOME}/zeromq-native.zip libjzmq.so libzmq.so libsodium.so
- cd
addons:
artifacts:
debug: true
paths:
- zeromq-native.zip
target_paths: ${ZMQ_VERSION}/${ARCH}
permissions: public-read