Skip to content

Commit

Permalink
Merge pull request #16 from karel-burda/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
karel-burda authored Nov 24, 2018
2 parents e59416d + 11ca43e commit d46fbdb
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 19 deletions.
13 changes: 4 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
stages:
- function-loader, example, tests -- linux, debug, cppcheck, coverage, g++, 64-bit
- function-loader, example, tests -- osx, release with debug info, valgrind, clang++, 64-bit
- function-loader, example, tests -- windows, release, msvc, 32-bit

git:
depth: 1

jobs:
matrix:
include:
- stage: function-loader, example, tests -- linux, debug, cppcheck, coverage, g++, 64-bit
- name: "function-loader, example, tests -- linux, debug, cppcheck, coverage, g++, 64-bit"
os: linux
dist: xenial
language: cpp
Expand Down Expand Up @@ -57,7 +52,7 @@ jobs:

- set +e

- stage: function-loader, example, tests -- osx, release with debug info, valgrind, clang++, 64-bit
- name: "function-loader, example, tests -- osx, release with debug info, valgrind, clang++, 64-bit"
os: osx
osx_image: xcode10.1
language: cpp
Expand Down Expand Up @@ -88,7 +83,7 @@ jobs:

- set +e

- stage: function-loader, example, tests -- windows, release, msvc, 32-bit
- name: "function-loader, example, tests -- windows, release, msvc, 32-bit"
os: windows
language: cpp
env: BUILD_TYPE="Release"
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)

project(function-loader VERSION 1.2.1 LANGUAGES CXX)
project(function-loader VERSION 1.2.2 LANGUAGES CXX)

add_library(${PROJECT_NAME} INTERFACE)

Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
![Version](https://img.shields.io/badge/version-1.2.1-green.svg)
![Version](https://img.shields.io/badge/version-1.2.2-green.svg)
[![License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat)](LICENSE)
[![Build Status](https://travis-ci.org/karel-burda/function-loader.svg?branch=develop)](https://travis-ci.org/karel-burda/function-loader)
[![Codecov Status](https://codecov.io/gh/karel-burda/function-loader/branch/develop/graph/badge.svg)](https://codecov.io/gh/karel-burda/function-loader/branch/develop)

# Important
This project contains git sub-modules that are needed for building tests.
This project contains git sub-modules that are needed for building example and tests.

If you just want to use the implementation, you can clone without sub-modules. In case you want to build the tests, be sure to clone the repository
If you just want to use the implementation, you can clone without sub-modules. In case you want to build the example or tests, be sure to clone the repository
with `--recurse-submodules` or `--recursive` on older versions of git. Alternatively, you can clone without sub-modules and initialize these later.

# Introduction
Expand Down Expand Up @@ -53,7 +53,6 @@ add_library(burda::function-loader ALIAS function-loader)
# this will import search paths, compile definitions and other dependencies of the function-loader as well
target_link_libraries("my-project" function-loader)
# or with private visibility: target_link_libraries("my-project" PRIVATE function-loader)
```

### B) Generate separately
Expand All @@ -80,7 +79,6 @@ message(STATUS "Found version of function-loader is: ${function-loader_VERSION}"
# this will import search paths, compile definitions and other dependencies of the function-loader as well
target_link_libraries("my-project" burda::function-loader)
# or with public visibility: target_link_libraries("my-project" PUBLIC burda::function-loader)
```

## 2. Manual Way
Expand Down Expand Up @@ -178,14 +176,14 @@ This is the example of running tests in the debug mode.
For more info, see [.travis.yml](.travis.yml).

# Continuous Integration
Continuous Integration is now being run Linux, OS X and Windows on Travis: https://travis-ci.org/karel-burda/cpp-utils.
Continuous Integration is now being run Linux, OS X and Windows on Travis: https://travis-ci.org/karel-burda/function-loader.

Compilers are set-up to treat warnings as errors and with pedantic warning level.
Targets are built in one stage with debug symbols with code coverage measure and in release mode with debug symbols in the second one.

Valgrind is being run on the example as well.

The project is using these stages:
The project is using these jobs:
* `function-loader, example, tests -- linux, debug, cppcheck, coverage, g++, 64-bit`
* `function-loader, example, tests -- osx, release with debug info, valgrind, clang++, 64-bit`
* `function-loader, example, tests -- windows, release, msvc, 32-bit`
Expand Down
2 changes: 1 addition & 1 deletion submodules/cmake-helpers
2 changes: 1 addition & 1 deletion submodules/test-utils
4 changes: 4 additions & 0 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ find_package(function-loader CONFIG REQUIRED)
message(STATUS "Found version of function-loader is: ${function-loader_VERSION}")
target_link_libraries(${PROJECT_NAME} PRIVATE burda::function-loader)

target_compile_options(${PROJECT_NAME}
PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/MP>)

burda_cmake_helpers_cpp_gtest_bootstrap_and_link(${PROJECT_NAME} "release-1.8.1" "Release" PRIVATE)

if (COVERAGE)
Expand Down

0 comments on commit d46fbdb

Please sign in to comment.