Skip to content

Commit 5be43c7

Browse files
committed
Updated wsjcpp-core to v0.1.0
1 parent acaf504 commit 5be43c7

13 files changed

+310
-193
lines changed

.travis.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: cpp
2+
3+
branches:
4+
only:
5+
- master
6+
7+
dist: bionic
8+
9+
addons:
10+
apt:
11+
packages:
12+
- cmake
13+
- make
14+
- g++
15+
- pkg-config
16+
17+
# Build steps
18+
script:
19+
- mkdir -p tmp
20+
- cd tmp
21+
- cmake ..
22+
- make
23+
- cd ../unit-tests.wsjcpp
24+
- ./build_simple.sh
25+
- ./unit-tests

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# wsjcpp-docker-api-wrapper
1+
# wsjcpp-docker-api
2+
3+
[![Build Status](https://api.travis-ci.org/wsjcpp/wsjcpp-docker-api.svg?branch=master)](https://travis-ci.org/wsjcpp/wsjcpp-docker-api) [![Github Stars](https://img.shields.io/github/stars/wsjcpp/wsjcpp-docker-api.svg?label=github%20%E2%98%85)](https://github.com/wsjcpp/wsjcpp-docker-api/stargazers) [![Github Stars](https://img.shields.io/github/contributors/wsjcpp/wsjcpp-docker-api.svg)](https://github.com/wsjcpp/wsjcpp-docker-api/) [![Github Forks](https://img.shields.io/github/forks/wsjcpp/wsjcpp-docker-api.svg?label=github%20forks)](https://github.com/wsjcpp/wsjcpp-docker-api/network/members)
24

35
C++ implementation for docker-api (used curl)
46

@@ -31,15 +33,15 @@ or include files:
3133
// get default unix socket path (for linux and for mac)
3234
std::string sUnixSocketPath = dockerApi.getDefaultUnixSocketPath();
3335
if (!dockerApi.doConnectUnixSocketPath(sUnixSocketPath) ) {
34-
WSJCppLog::err(TAG, "Could not connect to '" + sUnixSocketPath + "'");
36+
WsjcppLog::err(TAG, "Could not connect to '" + sUnixSocketPath + "'");
3537
return -1;
3638
}
3739
3840
// get list of images like a 'docker images'
3941
std::vector<WsjcppDockerImage> vImages;
4042
std::string sError;
4143
if (!dockerApi.getImages(vImages, sError)) {
42-
WSJCppLog::err(TAG, "Could not get list of images '" + sError + "'");
44+
WsjcppLog::err(TAG, "Could not get list of images '" + sError + "'");
4345
return -1;
4446
}
4547

src.wsjcpp/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set (WSJCPP_SOURCES "")
1717
find_package(Threads REQUIRED)
1818
list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
1919

20-
# wsjcpp-core:v0.0.8
20+
# wsjcpp-core:v0.1.0
2121
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/wsjcpp_core/")
2222
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp")
2323
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.h")

src.wsjcpp/wsjcpp_core/wsjcpp.hold.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_cxx_standard: 11
33
cmake_minimum_required: 3.0
44

55
name: wsjcpp-core
6-
version: v0.0.8
6+
version: v0.1.0
77
description: Basic Utils for wsjcpp
88
issues: https://github.com/wsjcpp/wsjcpp-core/issues
99
repositories:
@@ -64,3 +64,7 @@ unit-tests:
6464
description: "Test create empty file"
6565
- name: "ReadFileToBuffer"
6666
description: "test for readFileToBuffer"
67+
- name: "Join"
68+
description: "Test join function"
69+
- name: "getHumanSizeBytes"
70+
description: "Test function get human size in bytes"

0 commit comments

Comments
 (0)