Skip to content

Commit e960bf5

Browse files
author
Peter Spiess-Knafl
committed
Merge branch 'release/v1.0.0'
2 parents b84ffa1 + 3950f34 commit e960bf5

File tree

153 files changed

+8701
-6960
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+8701
-6960
lines changed

.dockerignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# osx noise
2+
.DS_Store
3+
profile
4+
5+
# xcode noise
6+
build/*
7+
*.mode1
8+
*.mode1v3
9+
*.mode2v3
10+
*.perspective
11+
*.perspectivev3
12+
*.pbxuser
13+
*.xcworkspace
14+
xcuserdata
15+
16+
# svn & cvs
17+
.svn
18+
CVS
19+
reports/*
20+
doc/html
21+
CMakeLists.txt.user*
22+
src/examples/gen/*
23+
*~
24+
25+
# IntelliJ
26+
.idea
27+
28+
*.tar.gz
29+
*.asc

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ src/examples/gen/*
2424

2525
# IntelliJ
2626
.idea
27+
28+
*.tar.gz
29+
*.asc

.travis.yml

Lines changed: 55 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,63 @@
11
language: cpp
22
dist: trusty
3-
3+
sudo: required
4+
services:
5+
- docker
46
before_install:
5-
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
6-
- sudo apt-get update -qq
7-
- sudo apt-get install -qq libcurl4-openssl-dev libjsoncpp-dev libargtable2-dev libgnutls-dev libgcrypt11-dev valgrind wget gcc-5 g++-5
8-
- wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.52.tar.gz
9-
- tar -xvf libmicrohttpd-0.9.52.tar.gz
10-
- cd libmicrohttpd-0.9.52
11-
- ./configure && make
12-
- sudo make install && sudo ldconfig
13-
- cd .. && sudo rm -rf libmicrohttpd-0.9.52
14-
- sudo pip install codecov
15-
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
16-
- sudo apt-get update -qq
17-
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
18-
19-
install:
20-
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
21-
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-5 90
7+
- |
8+
if [[ "$OS" == "native" && "$TRAVIS_OS_NAME" == "linux" ]]
9+
then
10+
sudo apt-get install -qq wget
11+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
12+
sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main' -y
13+
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
14+
sudo apt-get update -qq
15+
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
16+
wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.52.tar.gz
17+
tar -xvf libmicrohttpd-0.9.52.tar.gz
18+
cd libmicrohttpd-0.9.52
19+
./configure && make
20+
sudo make install && sudo ldconfig
21+
cd .. && sudo rm -rf libmicrohttpd-0.9.52
22+
sudo pip install codecov
23+
sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-5 90
24+
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]
25+
then
26+
brew update
27+
brew install jsoncpp argtable curl hiredis redis
28+
brew install libmicrohttpd --with-ssl
29+
fi
2230
23-
env:
24-
- HTTP_SERVER=YES HTTP_CLIENT=YES COMPILE_STUBGEN=YES
31+
matrix:
32+
include:
33+
- env: OS=fedora
34+
os: linux
35+
- env: OS=arch
36+
os: linux
37+
- env: OS=debian8
38+
os: linux
39+
- env: OS=debian9
40+
os: linux
41+
- env: OS=debian10
42+
os: linux
43+
- env: OS=ubuntu1604
44+
os: linux
45+
- env: OS=ubuntu1704
46+
os: linux
47+
- env: OS=native
48+
os: linux
49+
compiler: clang
50+
- env: OS=native
51+
os: linux
52+
compiler: gcc
53+
- env: OS=native
54+
os: osx
55+
compiler: clang
2556

2657
compiler:
27-
- gcc
58+
- gcc
2859

2960
script:
30-
- mkdir -p build && cd build
31-
- cmake -DCMAKE_BUILD_TYPE=Debug -DHTTP_CLIENT=${HTTP_CLIENT} -DHTTP_SERVER=${HTTP_SERVER} -DCOMPILE_STUBGEN=${COMPILE_STUBGEN} ..
32-
- make
33-
- make test
34-
- sudo make install && sudo ldconfig
35-
- g++ ../src/examples/simpleclient.cpp -ljsonrpccpp-client -ljsoncpp -ljsonrpccpp-common -lcurl -o sampleclient
36-
- g++ ../src/examples/simpleserver.cpp -ljsonrpccpp-server -ljsoncpp -ljsonrpccpp-common -lmicrohttpd -o sampleserver
37-
- sudo make uninstall
38-
- cd ..
39-
- ./dev/codecov.sh
40-
after_success:
41-
- bash <(curl -s https://codecov.io/bash)
61+
- if [[ "$OS" == "native" ]]; then ./docker/build_test_install.sh; fi
62+
- if [[ "$OS" == "native" && "$TRAVIS_OS_NAME" == "linux" && "$COMPILER" == "gcc" ]]; then ./dev/codecov.sh; fi
63+
- if [[ "$OS" != "native" ]]; then cd docker; make ${OS}; fi

AUTHORS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,15 @@ Alexandre Poirot <[email protected]>
3333
+ adapted build file to generate pkg-config file for this lib
3434
+ added client and server connectors that use Tcp Sockets on Linux and Windows (uses native socket and thread API on each OS)
3535

36+
Trevor Vannoy <[email protected]>
37+
+ python client stub generator
38+
3639
Jean-Daniel Michaud <jean.daniel,[email protected]>
3740
+ added server/client file descriptor support
3841

42+
Jacques Software <[email protected]>
43+
+ added support for redis connector
44+
3945
Bugfixes (chronological order)
4046
==============================
4147

@@ -66,3 +72,6 @@ Erik Lundin
6672

6773
Michał Górny <[email protected]>
6874
+ bugfixes in the build system
75+
76+
Trevor Vannoy <[email protected]>
77+
+ fixed tcp socket client compile issues

0 commit comments

Comments
 (0)