forked from crystal-community/zeromq-crystal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (35 loc) · 855 Bytes
/
.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
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- uuid-dev
- libssl-dev
language: crystal
env:
- ZMQ="4.2.2"
before_install:
- export CXX=g++-4.9
- export CC=gcc-4.9
- 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 LIBRARY_PATH=$LDHACK/lib
- export PKG_CONFIG_PATH=$LDHACK/lib/pkgconfig
- echo $PKG_CONFIG_PATH
- wget https://github.com/zeromq/libzmq/releases/download/v$ZMQ/zeromq-$ZMQ.tar.gz
- tar xzvf zeromq-$ZMQ.tar.gz
- sudo apt-get update
- sudo apt-get install -y libtool pkg-config build-essential autoconf automake uuid-dev
- cd zeromq-$ZMQ
- ./configure
- sudo make
- sudo make install
- cd ..
script:
crystal spec