tomlplusplus/.circleci/config.yml
Mark Gillard 74e7209cca fixed parse_file for string literals (closes #12)
also:
- decoupled `TOML_EXCEPTION` from ex. mode (closes #13)
- added `TOML_OPTIONAL_TYPE` customization point
- added tests for a custom optional type
- ci refactoring
2020-03-03 23:28:24 +02:00

126 lines
3.8 KiB
YAML

version: 2.1
jobs:
clang_build_with_dox:
docker:
- image: marzer/misc_cpp17_dev:latest
steps:
- checkout
- run:
name: Checking toml.hpp
command: |
cd python && python3 ci_single_header_check.py
- run:
name: Pulling submodules
command: |
git submodule update --init extern/Catch2
git submodule update --init extern/tloptional
- run:
name: Building with clang
command: |
CXX=clang++-9 meson build-clang
cd build-clang && ninja -v -j 4
- run:
name: Running tests
command: |
cd build-clang && ninja test
- run:
name: Generating documentation
command: |
git submodule update --init extern/mcss
cd python && python3 generate_documentation.py
- persist_to_workspace:
root: docs
paths: html
clang_build:
docker:
- image: marzer/misc_cpp17_dev:latest
steps:
- checkout
- run:
name: Checking toml.hpp
command: |
cd python && python3 ci_single_header_check.py
- run:
name: Pulling submodules
command: |
git submodule update --init extern/Catch2
git submodule update --init extern/tloptional
- run:
name: Building with clang
command: |
CXX=clang++-9 meson build-clang
cd build-clang && ninja -v -j 4
- run:
name: Running tests
command: |
cd build-clang && ninja test
gcc_build:
docker:
- image: marzer/misc_cpp17_dev:latest
steps:
- checkout
- run:
name: Pulling submodules
command: |
git submodule update --init extern/Catch2
git submodule update --init extern/tloptional
- run:
name: Building with gcc
command: |
CXX=g++-9 meson build-gcc
cd build-gcc && ninja -v -j 4
- run:
name: Running tests
command: |
cd build-gcc && ninja test
deploy_dox:
docker:
- image: node:8.10.0
steps:
- checkout
- attach_workspace:
at: docs
- run:
name: Disable jekyll builds
command: |
touch docs/html/.nojekyll
- run:
name: Installing dependencies
command: |
npm install -g --silent gh-pages
git config user.email "ci-build@tomlplusplus.com"
git config user.name "ci-build"
- add_ssh_keys:
fingerprints:
- "a6:63:c0:a5:89:cf:2d:03:e7:c9:88:5d:c0:8c:39:e0"
- run:
name: Deploy docs to gh-pages branch
command: gh-pages --dotfiles --message "[skip ci] Updates" --dist docs/html
workflows:
version: 2
build:
jobs:
- clang_build_with_dox:
filters:
branches:
only: master
- clang_build:
filters:
branches:
ignore: master
- gcc_build
- deploy_dox:
requires:
- clang_build_with_dox
- gcc_build