Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
b02e3bb0
Unverified
Commit
b02e3bb0
authored
Feb 12, 2018
by
Niels Lohmann
Committed by
GitHub
Feb 12, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #957 from theodelrieu/fix_coveralls
Make coveralls watch the include folder
parents
447f5421
41db7cd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
.travis.yml
.travis.yml
+6
-3
No files found.
.travis.yml
View file @
b02e3bb0
...
@@ -80,7 +80,7 @@ matrix:
...
@@ -80,7 +80,7 @@ matrix:
env
:
env
:
-
COMPILER=g++-4.9
-
COMPILER=g++-4.9
-
SPECIAL=amalgamation
-
SPECIAL=amalgamation
-
CMAKE_OPTIONS=-DJSON_MultipleHeader
=ON
-
MULTIPLE_HEADERS
=ON
addons
:
addons
:
apt
:
apt
:
sources
:
[
'
ubuntu-toolchain-r-test'
]
sources
:
[
'
ubuntu-toolchain-r-test'
]
...
@@ -99,10 +99,11 @@ matrix:
...
@@ -99,10 +99,11 @@ matrix:
before_script
:
before_script
:
-
pip install --user cpp-coveralls
-
pip install --user cpp-coveralls
after_success
:
after_success
:
-
coveralls --build-root test --include
single_
include/nlohmann --gcov 'gcov-4.9' --gcov-options '\-lp'
-
coveralls --build-root test --include include/nlohmann --gcov 'gcov-4.9' --gcov-options '\-lp'
env
:
env
:
-
COMPILER=g++-4.9
-
COMPILER=g++-4.9
-
CMAKE_OPTIONS=-DJSON_Coverage=ON
-
CMAKE_OPTIONS=-DJSON_Coverage=ON
-
MULTIPLE_HEADERS=ON
# Coverity (only for branch coverity_scan)
# Coverity (only for branch coverity_scan)
...
@@ -281,6 +282,8 @@ script:
...
@@ -281,6 +282,8 @@ script:
# make sure CXX is correctly set
# make sure CXX is correctly set
-
if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
-
if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
# by default, use the single-header version
-
if [[ "${MULTIPLE_HEADERS}" == "" ]]; then export MULTIPLE_HEADERS=OFF; fi
# show OS/compiler version
# show OS/compiler version
-
uname -a
-
uname -a
...
@@ -288,7 +291,7 @@ script:
...
@@ -288,7 +291,7 @@ script:
# compile and execute unit tests
# compile and execute unit tests
-
mkdir -p build && cd build
-
mkdir -p build && cd build
-
cmake .. ${CMAKE_OPTIONS} -GNinja && cmake --build . --config Release
-
cmake .. ${CMAKE_OPTIONS} -
DJSON_MultipleHeaders=${MULTIPLE_HEADERS} -
GNinja && cmake --build . --config Release
-
ctest -C Release -V -j
-
ctest -C Release -V -j
-
cd ..
-
cd ..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment