This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
forked from JustinTulloss/zeromq.node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (63 loc) · 1.78 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
sudo: false
os:
- linux
- osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- uuid-dev
language: node_js
env:
global:
- CXX=g++-4.9
- CC=gcc-4.9
matrix:
- ZMQ="2.2.0" ZMQ_REPO="zeromq2-x"
- ZMQ="3.2.5" ZMQ_REPO="zeromq3-x"
- ZMQ="4.0.8" ZMQ_REPO="zeromq4-x" SODIUM="1.0.5"
- ZMQ="4.1.5" ZMQ_REPO="zeromq4-1" SODIUM="1.0.5"
before_install:
- mkdir ldlocal
- export LDHACK=`pwd`/ldlocal
- export LDFLAGS=-L$LDHACK/lib
- export CFLAGS=-I$LDHACK/include
- export LD_RUN_PATH=$LDHACK/lib
- export LD_LIBRARY_PATH=$LDHACK/lib
- export PKG_CONFIG_PATH=$LDHACK/lib/pkgconfig
- wget https://github.com/zeromq/$ZMQ_REPO/releases/download/v$ZMQ/zeromq-$ZMQ.tar.gz
- tar xzvf zeromq-$ZMQ.tar.gz
- '[ -z "$SODIUM" ] || wget https://github.com/jedisct1/libsodium/releases/download/$SODIUM/libsodium-$SODIUM.tar.gz'
- '[ -z "$SODIUM" ] || tar xzvf libsodium-$SODIUM.tar.gz'
- '[ -z "$SODIUM" ] || cd libsodium-$SODIUM'
- '[ -z "$SODIUM" ] || ./autogen.sh'
- '[ -z "$SODIUM" ] || ./configure --prefix=$LDHACK'
- '[ -z "$SODIUM" ] || make -j'
- '[ -z "$SODIUM" ] || make install'
- '[ -z "$SODIUM" ] || cd ..'
- '[ -z "$SODIUM" ] || export LIBS=-lsodium && export sodium_CFLAGS=$CFLAGS && export sodium_LIBS=$LDFLAGS'
- cd zeromq-$ZMQ
- ./autogen.sh
- if [[ -z "$SODIUM" ]]; then ./configure --prefix=$LDHACK; else ./configure --prefix=$LDHACK --with-libsodium=$LDHACK; fi
- make -j
- make install
- cd ..
script:
- nvm install 0.10
- npm install
- travis_retry npm test
- nvm install 0.12
- npm install
- travis_retry npm test
- nvm install 4
- npm install
- travis_retry npm test
- nvm install 5
- npm install
- travis_retry npm test
- nvm install 6
- npm install
- travis_retry npm test