-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
70 lines (58 loc) · 1.85 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
language: cpp
env:
- release
compiler:
- gcc
before_install:
- echo $LANG
- echo $LC_ALL
- echo $TRAVIS_OS_NAME
#LINUX
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install uuid-dev; fi
- echo $CXX
- echo `g++ --version`
#- if [ "$CXX" = "clang++" ]; then sudo apt-get install -qq libstdc++-4.9-dev; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq g++-4.9; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
#OSX
#- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install gcc49; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install cmake; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libsodium; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then git clone --depth 1 git://github.com/jedisct1/libsodium.git -b 0.4.5 libsodium; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cd libsodium; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then ./autogen.sh; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then ./configure; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then make; sudo make install; cd ..; fi
- git clone https://github.com/zeromq/zeromq4-1 zeromq4-1
- cd zeromq4-1
- ./autogen.sh
- ./configure
- make
- sudo make install
#- sudo /sbin/ldconfig
- cd ..
before_script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
script:
- make install
branches:
only:
- master
notifications:
email: false
irc:
channels:
- "chat.freenode.net#lightq"
template:
- "%{repository}/%{branch} (%{commit} - %{author}): %{build_url}: %{message}"
webhooks:
on_success: change
on_failure: always
on_start: always
os:
- linux
- osx