Skip to content

Commit 7b9ac5f

Browse files
authored
Fix CI
1 parent 096304a commit 7b9ac5f

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ matrix:
1010
packages:
1111
- g++-7
1212
env:
13-
- MATRIX_EVAL="BUILD_MODE=Debug && CC=gcc-7 && CXX=g++-7 && CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -std=c++17"
13+
- MATRIX_EVAL='BUILD_MODE=Debug && CC=gcc-7 && CXX=g++-7 && CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -std=c++17"'
1414

1515
- os: linux
1616
addons:
@@ -20,7 +20,7 @@ matrix:
2020
packages:
2121
- g++-7
2222
env:
23-
- MATRIX_EVAL="BUILD_MODE=Release && CC=gcc-7 && CXX=g++-7 && CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -std=c++17"
23+
- MATRIX_EVAL='BUILD_MODE=Release && CC=gcc-7 && CXX=g++-7 && CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -std=c++17"'
2424

2525
- os: linux
2626
addons:
@@ -30,7 +30,7 @@ matrix:
3030
packages:
3131
- g++-7
3232
env:
33-
- MATRIX_EVAL="BUILD_MODE=Debug && CC=gcc-7 && CXX=g++-7 && CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -std=c++14"
33+
- MATRIX_EVAL='BUILD_MODE=Debug && CC=gcc-7 && CXX=g++-7 && CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -std=c++14"'
3434

3535
- os: linux
3636
addons:
@@ -40,9 +40,9 @@ matrix:
4040
packages:
4141
- g++-7
4242
env:
43-
- MATRIX_EVAL="BUILD_MODE=Release && CC=gcc-7 && CXX=g++-7 && CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -std=c++14"
43+
- MATRIX_EVAL='BUILD_MODE=Release && CC=gcc-7 && CXX=g++-7 && CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -std=c++14"'
4444

4545
before_install:
46-
- eval "${MATRIX_EVAL}"
46+
- eval "${MATRIX_EVAL}"
4747

48-
script: make test
48+
script: make test

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
![logo](https://raw.githubusercontent.com/vthiery/cpp-statsd-client/master/images/logo.svg?sanitize=true)
44

5-
[ ![Download](https://api.bintray.com/packages/vthiery/conan-packages/statsdclient%3Avthiery/images/download.svg) ](https://bintray.com/vthiery/conan-packages/statsdclient%3Avthiery/_latestVersion)
5+
[![Download](https://api.bintray.com/packages/vthiery/conan-packages/statsdclient%3Avthiery/images/download.svg)](https://bintray.com/vthiery/conan-packages/statsdclient%3Avthiery/_latestVersion)
66
[![Build Status](https://travis-ci.org/vthiery/cpp-statsd-client.svg?branch=master)](https://travis-ci.org/vthiery/cpp-statsd-client)
77
[![Github Issues](https://img.shields.io/github/issues/vthiery/cpp-statsd-client.svg)](https://github.com/vthiery/cpp-statsd-client/issues)
88
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/vthiery/cpp-statsd-client.svg)](http://isitmaintained.com/project/vthiery/cpp-statsd-client "Average time to resolve an issue")
99

1010
A header-only StatsD client implemented in C++.
1111
The client allows:
12+
1213
- batching,
1314
- change of configuration at runtime,
1415
- user-defined frequency rate.
@@ -19,22 +20,24 @@ The client allows:
1920

2021
In order to install the header files and/or run the tests, simply use the Makefile and execute
2122

23+
```sh
24+
make install
2225
```
23-
make install
24-
```
2526

2627
and
2728

29+
```sh
30+
make test
2831
```
29-
make test
30-
```
3132

3233
### Conan
3334

3435
If you are using [Conan](https://www.conan.io/) to manage your dependencies, merely add statsdclient/x.y.z@vthiery/stable to your conanfile.py's requires, where x.y.z is the release version you want to use. Please file issues here if you experience problems with the packages. You can also directly download the latest version [here](https://bintray.com/vthiery/conan-packages/statsdclient%3Avthiery/_latestVersion).
3536

3637
## Usage
38+
3739
### Example
40+
3841
A simple example of how to use the client:
3942

4043
```cpp
@@ -93,19 +96,21 @@ The batchsize is the only parameter that cannot be changed for the time being.
9396
### Batching
9497

9598
The client supports batching of the metrics:
96-
* the unit of the batching parameter is bytes,
97-
* it is optional and not setting it will result in an immediate send of any metrics,
99+
100+
- the unit of the batching parameter is bytes,
101+
- it is optional and not setting it will result in an immediate send of any metrics,
98102

99103
If set, the UDP sender will spawn a thread sending the metrics to the server every 1 second by aggregates. The aggregation logic is as follows:
100-
* if the last message has already reached the batching limit, add a new element in a message queue;
101-
* otherwise, append the message to the last one, separated by a `\n`.
104+
105+
- if the last message has already reached the batching limit, add a new element in a message queue;
106+
- otherwise, append the message to the last one, separated by a `\n`.
102107

103108
### Frequency rate
104109

105110
When sending a metric, a frequency rate can be set in order to limit the metrics' sampling. By default, the frequency rate is set to one and won't affect the sampling. If set to a value `epsilon` (0.0001 for the time being) close to one, the sampling is not affected either.
106111

107112
If the frequency rate is set and `epsilon` different from one, the sending will be rejected randomly (the higher the frequency rate, the lower the probability of rejection).
108113

109-
110114
## License
115+
111116
This library is under MIT license.

0 commit comments

Comments
 (0)