-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
61 lines (52 loc) · 1.65 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
sudo: required
dist: trusty
language: cpp
compiler:
- gcc
services:
- redis-server
before_install:
# https://github.com/easylogging/easyloggingpp/blob/master/.travis.yml - as per..
- sudo apt-get -qq update
- sudo apt-get install -y libgtest-dev
- "cd /usr/src/gtest && sudo cmake . && sudo cmake --build . && sudo mv libg* /usr/local/lib/ ; cd -"
install:
# Always install valgrind
- sudo apt-get install valgrind
# Always install g++4.8.1
- sudo apt-get install -qq g++-4.8
- sudo apt-get install -qq g++-4.8-multilib
- if [ "$CXX" = "g++" ]; then export CMAKE_CXX_COMPILER="g++-4.8"; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
# Need to see if pkg-config is configured and what version
- sudo apt-get install libgtest-dev
- sudo apt-get install autoconf
# Not needed per se, but could be used to make a more minimal,readable xml
- sudo apt-get install xsltproc
# - sudo apt-get install castxml
script:
# Creating build-enviroment
- export BD=$PWD/builddeps
- mkdir -p $BD
- export PATH=$BD/bin:$PATH
- export PKG_CONFIG_PATH=$BD/share/pkgconfig:$BD/lib/pkgconfig
# Clone and build libev from fnchooft
- git clone git://github.com/fnchooft/libev
- cd libev
- ./autogen.sh --prefix $BD
- make install
# Return to root-dir and build our package
- cd ..
# Clone and build hiredis from fnchooft
- git clone git://github.com/fnchooft/hiredis
- cd hiredis
- make install PREFIX=$BD
# Return to root-dir and build our package
- cd ..
- ./autogen.sh --prefix $BD
- make
- make check
branches:
only:
- master
# - develop - might be a better choice for the future....