forked from cinemast/libjson-rpc-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
63 lines (60 loc) · 1.87 KB
/
.travis.yml
File metadata and controls
63 lines (60 loc) · 1.87 KB
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
language: cpp
dist: trusty
sudo: required
services:
- docker
before_install:
- |
if [[ "$OS" == "native" && "$TRAVIS_OS_NAME" == "linux" ]]
then
sudo apt-get install -qq wget
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main' -y
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get update -qq
sudo apt-get install -qq libcurl4-openssl-dev libhiredis-dev redis-server libjsoncpp-dev libargtable2-dev libgnutls-dev libgcrypt11-dev valgrind wget gcc-5 g++-5 clang-5.0
wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.52.tar.gz
tar -xvf libmicrohttpd-0.9.52.tar.gz
cd libmicrohttpd-0.9.52
./configure && make
sudo make install && sudo ldconfig
cd .. && sudo rm -rf libmicrohttpd-0.9.52
sudo pip install codecov
sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-5 90
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]
then
brew update
brew install jsoncpp argtable curl hiredis redis
brew install libmicrohttpd --with-ssl
fi
matrix:
include:
- env: OS=fedora
os: linux
- env: OS=arch
os: linux
- env: OS=debian8
os: linux
- env: OS=debian9
os: linux
- env: OS=debian10
os: linux
- env: OS=ubuntu1604
os: linux
- env: OS=ubuntu1704
os: linux
- env: OS=native
os: linux
compiler: clang
- env: OS=native
os: linux
compiler: gcc
- env: OS=native
os: osx
compiler: clang
compiler:
- gcc
script:
- if [[ "$OS" == "native" ]]; then ./docker/build_test_install.sh; fi
- if [[ "$OS" == "native" && "$TRAVIS_OS_NAME" == "linux" && "$COMPILER" == "gcc" ]]; then ./dev/codecov.sh; fi
- if [[ "$OS" != "native" ]]; then cd docker; make ${OS}; fi