Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 1.01 KB

README.md

File metadata and controls

33 lines (27 loc) · 1.01 KB

Build Status Build status

cpp-base

Base repo setup for a C++ project.

Features

  • C++17 enabled
  • All warnings turned on and treated as errors
  • Catch2 for unit tests
  • CI integration for the following configs:
    • Travis CI
      • OSX / apple-clang-9.0.0
      • Ubuntu (Trusty) / g++-6
    • AppVeyor
      • Windows / Visual Studio 15 2017
  • Code formatting checked automatically with clang-format-7:
    • locally: trigerred as a separate test (requires Docker)
    • CI: "format" stage defined in Travis CI

Building locally

cd cpp-base
mkdir build && cd build
# OSX / Linux
cmake .. && cmake --build .
# Windows
cmake .. && cmake --build . --config Release

Run tests

cd cpp-base/build
ctest