Skip to content

Commit

Permalink
Updated wsjcpp-core to v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-kg committed Apr 4, 2020
1 parent acaf504 commit 5be43c7
Show file tree
Hide file tree
Showing 13 changed files with 310 additions and 193 deletions.
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: cpp

branches:
only:
- master

dist: bionic

addons:
apt:
packages:
- cmake
- make
- g++
- pkg-config

# Build steps
script:
- mkdir -p tmp
- cd tmp
- cmake ..
- make
- cd ../unit-tests.wsjcpp
- ./build_simple.sh
- ./unit-tests
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# wsjcpp-docker-api-wrapper
# wsjcpp-docker-api

[![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)

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

Expand Down Expand Up @@ -31,15 +33,15 @@ or include files:
// get default unix socket path (for linux and for mac)
std::string sUnixSocketPath = dockerApi.getDefaultUnixSocketPath();
if (!dockerApi.doConnectUnixSocketPath(sUnixSocketPath) ) {
WSJCppLog::err(TAG, "Could not connect to '" + sUnixSocketPath + "'");
WsjcppLog::err(TAG, "Could not connect to '" + sUnixSocketPath + "'");
return -1;
}
// get list of images like a 'docker images'
std::vector<WsjcppDockerImage> vImages;
std::string sError;
if (!dockerApi.getImages(vImages, sError)) {
WSJCppLog::err(TAG, "Could not get list of images '" + sError + "'");
WsjcppLog::err(TAG, "Could not get list of images '" + sError + "'");
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion src.wsjcpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set (WSJCPP_SOURCES "")
find_package(Threads REQUIRED)
list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})

# wsjcpp-core:v0.0.8
# wsjcpp-core:v0.1.0
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/wsjcpp_core/")
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp")
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.h")
Expand Down
6 changes: 5 additions & 1 deletion src.wsjcpp/wsjcpp_core/wsjcpp.hold.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_cxx_standard: 11
cmake_minimum_required: 3.0

name: wsjcpp-core
version: v0.0.8
version: v0.1.0
description: Basic Utils for wsjcpp
issues: https://github.com/wsjcpp/wsjcpp-core/issues
repositories:
Expand Down Expand Up @@ -64,3 +64,7 @@ unit-tests:
description: "Test create empty file"
- name: "ReadFileToBuffer"
description: "test for readFileToBuffer"
- name: "Join"
description: "Test join function"
- name: "getHumanSizeBytes"
description: "Test function get human size in bytes"
Loading

0 comments on commit 5be43c7

Please sign in to comment.