Permalink
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (63 sloc) 1.78 KB
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