You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixes#63 : coverage info
- skips coverage info about the tests, since the tests exist only to test json_module
- currently only one build, the build.sh script will produce the coverage info and
will update coveralls since doing it from multiple builds is redundant.
- if [[ $FoBiS == [yY]* ]]; then sudo -H pip install FoBiS.py && FoBiS.py --version; fi
52
+
- if [[ $CODE_COVERAGE == [yY]* ]]; then sudo -H pip install cpp-coveralls; fi
50
53
- if [[ $DOCS == [yY]* ]]; then sudo dpkg -i robodoc_4.99.41-1_amd64.deb && robodoc --version; fi
51
54
- if [[ $CHECK_README_PROGS == [yY]* ]]; then gfortran -o f90split f90split.f90 && ./f90split README.md && shopt -s extglob && for f in !(README|CONTRIBUTING).md; do mv $f src/tests/jf_test_${f%.md}.f90; done; rm f90split.f90 f90split; fi
52
55
@@ -56,6 +59,7 @@ script:
56
59
57
60
after_success:
58
61
- cd $TRAVIS_BUILD_DIR
62
+
- if [[ $CODE_COVERAGE == [yY]* ]]; then gcov -o lib/ src/json_module.f90 && coveralls -n -b . ; fi
[](https://waffle.io/jacobwilliams/json-fortran)
11
12
[](https://github.com/jacobwilliams/json-fortran/#contributing-)
@@ -102,8 +103,11 @@ for more examples. The source files may be found in `src/tests/`.
102
103
! extract data from the file
103
104
! [found can be used to check if the data was really there]
104
105
call json%get('version.major', i, found)
106
+
if ( .not. found ) stop 1
105
107
call json%get('version.minor', j, found)
108
+
if ( .not. found ) stop 1
106
109
call json%get('data(1).number', k, found)
110
+
if ( .not. found ) stop 1
107
111
108
112
! clean up
109
113
call json%destroy()
@@ -155,7 +159,6 @@ of `json_value` pointers. For more examples see unit tests 2, 4 and 7 in `src/t
0 commit comments