Skip to content

Commit

Permalink
👷 added task to check amalgamation #906
Browse files Browse the repository at this point in the history
- Builds and runs test cases from individual sources rather than from amalgamation.
- Checks whether amalgamation would create the same single-header file as checked in.
  • Loading branch information
nlohmann committed Jan 23, 2018
1 parent dbfd7e5 commit 355c1e9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ matrix:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-4.9', 'ninja-build']

# check amalgamation
- os: linux
compiler: gcc
env:
- COMPILER=g++-4.9
- SPECIAL=amalgamation
- CMAKE_OPTIONS=-DJSON_MultipleHeader=ON
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-4.9', 'astyle', 'ninja-build']
after_success:
- make check-amalgamation

# Coveralls (http://gronlier.fr/blog/2015/01/adding-code-coverage-to-your-c-project/)

- os: linux
Expand Down

0 comments on commit 355c1e9

Please sign in to comment.