Skip to content

Commit 4132d18

Browse files
committed
Merge pull request #138 from zbeekman/upstream-master
Upstream master
2 parents d6aaece + ec40c2b commit 4132d18

28 files changed

+1481
-218
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ bin/
22
lib/
33
builds/
44
doc/
5+
*.gcov
6+
*.gcov.md*
57
*.mod
68
*.o
79
*.obj
@@ -17,4 +19,4 @@ visual_studio_2010/Debug/
1719
visual_studio_2010/Release/
1820
visual_studio_2010/x64
1921
FoBiS.py
20-
robodoc
22+
robodoc

.travis.yml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ addons:
1919
- ubuntu-toolchain-r-test
2020
packages:
2121
- gfortran-4.9
22-
- gfortran-5
2322
- binutils
2423
- cmake
2524
- python-pip
@@ -35,13 +34,17 @@ env:
3534
- >
3635
BUILD_SCRIPT="mkdir cmake-build &&
3736
cd cmake-build &&
38-
cmake -DCMAKE_BUILD_TYPE=COVERAGE .. &&
37+
cmake .. &&
3938
make -j 4 check"
40-
CODE_COVERAGE="yes"
39+
CODE_COVERAGE="no"
40+
DEPLOY_DOCUMENTATION="no"
4141
4242
# build with build.sh, make documentation, run unit tests and perform coverage analysis
43-
- BUILD_SCRIPT="./build.sh --coverage --enable-unicode"
43+
- >
44+
BUILD_SCRIPT="./build.sh --coverage --skip-documentation &&
45+
./build.sh --coverage --enable-unicode"
4446
CODE_COVERAGE="yes"
47+
DEPLOY_DOCUMENTATION="yes"
4548
4649
install:
4750
- |
@@ -60,9 +63,10 @@ install:
6063
mv f90split "$HOME/.local/bin/" && \
6164
rm f90split.f90
6265
fi
63-
- which FoBiS.py || (pip install FoBiS.py && FoBiS.py --version)
64-
- which ford || (pip install ford && ford --version)
65-
- which jsonlint || (pip install git+https://github.com/dmeranda/demjson.git && jsonlint --version)
66+
- pip install --upgrade pygooglechart
67+
- (pip install --upgrade FoBiS.py && FoBiS.py --version)
68+
- (pip install --upgrade ford && ford --version)
69+
- (pip install --upgrade git+https://github.com/dmeranda/demjson.git && jsonlint --version)
6670

6771
before_script:
6872
- |
@@ -72,17 +76,31 @@ before_script:
7276
mv $f src/tests/jf_test_${f%.md}.f90
7377
done
7478
fi
79+
- |
80+
if [ "$TRAVIS_TAG" ]; then
81+
if [[ "v$TRAVIS_TAG" != "v$(cat __VERSION__)" ]]; then
82+
echo "ERROR: You are trying to tag a new release but have a version missmatch in \`__VERSION__\`"
83+
false # throw an error
84+
fi
85+
fi
7586
7687
script:
7788
- echo $BUILD_SCRIPT
7889
- bash <<<$BUILD_SCRIPT
7990

8091
after_success:
8192
- cd $TRAVIS_BUILD_DIR
93+
- git config --global user.name "TRAVIS-CI-for-$(git --no-pager show -s --format='%cn' $TRAVIS_COMMIT)"
94+
- git config --global user.email "$(git --no-pager show -s --format='%ce' $TRAVIS_COMMIT)"
95+
- |
96+
if [[ $DEPLOY_DOCUMENTATION == [yY]* ]]; then
97+
./deploy.sh #publish docs for master branch and tags
98+
fi
99+
- (yes | rm -r doc gh-pages) || true # wipe out doc dirs to avoid confusing codecov
82100
- |
83101
if [[ $CODE_COVERAGE == [yY]* ]]; then
84-
bash <(curl -s https://codecov.io/bash)
102+
rm json_module-*unicode.F90.gcov || true
103+
mv json_module.F90.gcov src/
104+
mv jf_test*.[fF]90.gcov src/tests/
105+
bash <(curl -s https://codecov.io/bash) -v -X gcov
85106
fi
86-
- git config --global user.name "TRAVIS-CI-for-$(git --no-pager show -s --format='%cn' $TRAVIS_COMMIT)"
87-
- git config --global user.email "$(git --no-pager show -s --format='%ce' $TRAVIS_COMMIT)"
88-
#broken for now# - ./deploy.sh #handles updating documentation for master branch as well as tags

CHANGELOG.md

Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Change Log
1+
## Change Log
22

33
**Table of Contents**
44

@@ -12,11 +12,24 @@
1212
- [2.0.0 (2014-12-27)](#200-2014-12-27)
1313
- [1.0.0 (2014-06-23)](#100-2014-06-23)
1414

15-
## [Unreleased](https://github.com/jacobwilliams/json-fortran/tree/HEAD)
15+
### [Unreleased](https://github.com/jacobwilliams/json-fortran/tree/HEAD)
1616

17-
[Full Changelog](https://github.com/jacobwilliams/json-fortran/compare/4.1.1...HEAD)
17+
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/4.1.1...HEAD)
1818

1919
**Enhancements**
20+
- Added FORD documentation automatic deployment via
21+
[PR \#137](https://github.com/jacobwilliams/json-fortran/pull/137)
22+
from [zbeekman](https://github.com/zbeekman)
23+
- Added new version release checklist,
24+
[\#122](https://github.com/jacobwilliams/json-fortran/issues/122)
25+
via
26+
[PR \#137](https://github.com/jacobwilliams/json-fortran/pull/137)
27+
from [zbeekman](https://github.com/zbeekman)
28+
- Added finer control of real format printing,
29+
[\#117](https://github.com/jacobwilliams/json-fortran/issues/117)
30+
via
31+
[PR \#137](https://github.com/jacobwilliams/json-fortran/pull/137)
32+
from [zbeekman](https://github.com/zbeekman)
2033
- Removed official SCons support to facilitate faster development
2134
cycle,
2235
[\#121](https://github.com/jacobwilliams/json-fortran/issues/121)
@@ -47,11 +60,15 @@
4760
from [zbeekman](https://github.com/zbeekman)
4861

4962
**Fixed issues:**
50-
51-
- Fixed innacurate coverage reports via
63+
- Fixed bad gcov reports being generated due to a gcov/gfortran bug,
64+
[\#131](https://github.com/jacobwilliams/json-fortran/issues/131)
65+
via
66+
[PR \#137](https://github.com/jacobwilliams/json-fortran/pull/137)
67+
from [zbeekman](https://github.com/zbeekman)
68+
- Fixed inaccurate coverage reports via
5269
[PR \#109](https://github.com/jacobwilliams/json-fortran/pull/109)
5370
from [zbeekman](https://github.com/zbeekman)
54-
- Fixed a small consistency issue when outputing floating point
71+
- Fixed a small consistency issue when outputting floating point
5572
numbers via
5673
[PR \#125](https://github.com/jacobwilliams/json-fortran/pull/125)
5774
- Problems writing JSON to `error_unit` (0) due to JSON-Fortran's
@@ -75,16 +92,16 @@
7592
([zbeekman](https://github.com/zbeekman))
7693

7794

78-
## [4.1.1](https://github.com/jacobwilliams/json-fortran/tree/4.1.1) (2015-05-27)
95+
### [4.1.1](https://github.com/jacobwilliams/json-fortran/tree/4.1.1) (2015-05-27)
7996

80-
[Full Changelog](https://github.com/jacobwilliams/json-fortran/compare/4.1.0...4.1.1)
97+
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/4.1.0...4.1.1)
8198
or [Download v4.1.1](https://github.com/jacobwilliams/json-fortran/releases/tag/4.1.1)
8299

83100
**Enhancements**
84101

85102
- Installation now possible with a [Homebrew](http://brew.sh)
86103
[package](http://braumeister.org/formula/json-fortran) on Mac OS X
87-
- [CMake](http://cmake.org) install option to use a more traditional
104+
- [CMake](http://www.cmake.org) install option to use a more traditional
88105
Gnu install structure (to support Homebrew installation)
89106
[PR \#101](https://github.com/jacobwilliams/json-fortran/pull/101)
90107
from [zbeekman](https://github.com/zbeekman)
@@ -111,14 +128,14 @@ or [Download v4.1.1](https://github.com/jacobwilliams/json-fortran/releases/tag/
111128

112129

113130

114-
## [4.1.0](https://github.com/jacobwilliams/json-fortran/tree/4.1.0) (2015-05-05)
131+
### [4.1.0](https://github.com/jacobwilliams/json-fortran/tree/4.1.0) (2015-05-05)
115132

116133
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/4.0.0...4.1.0)
117134
or [Download v4.1.0](https://github.com/jacobwilliams/json-fortran/releases/tag/4.1.0)
118135

119136
**Enhancements:**
120137

121-
- Runtime speed improvements
138+
- Run-time speed improvements
122139
[\#75](https://github.com/jacobwilliams/json-fortran/issues/75)
123140
implemented in
124141
[PR \#93](https://github.com/jacobwilliams/json-fortran/pull/93)
@@ -132,7 +149,7 @@ or [Download v4.1.0](https://github.com/jacobwilliams/json-fortran/releases/tag/
132149

133150

134151

135-
## [4.0.0](https://github.com/jacobwilliams/json-fortran/tree/4.0.0) (2015-03-16)
152+
### [4.0.0](https://github.com/jacobwilliams/json-fortran/tree/4.0.0) (2015-03-16)
136153

137154
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/3.1.0...4.0.0)
138155
or [Download v4.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/4.0.0)
@@ -180,7 +197,7 @@ or [Download v4.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/
180197
- Discrepancy with dummy argument attributes for
181198
path between `get` and `get_..._vec` procedures
182199
[\#79](https://github.com/jacobwilliams/json-fortran/issues/79)
183-
- Small bugfix for [CMake](http://www.cmake.org) install
200+
- Small bug fix for [CMake](http://www.cmake.org) install
184201
[\#68](https://github.com/jacobwilliams/json-fortran/pull/68)
185202
([zbeekman](https://github.com/zbeekman))
186203
- JSON output files from tests are overwriting expected outputs and
@@ -203,7 +220,7 @@ or [Download v4.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/
203220

204221

205222

206-
## [3.1.0](https://github.com/jacobwilliams/json-fortran/tree/3.1.0) (2015-02-28)
223+
### [3.1.0](https://github.com/jacobwilliams/json-fortran/tree/3.1.0) (2015-02-28)
207224

208225
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/3.0.0...3.1.0)
209226
or [Download v3.1.0](https://github.com/jacobwilliams/json-fortran/releases/tag/3.1.0)
@@ -220,7 +237,7 @@ or [Download v3.1.0](https://github.com/jacobwilliams/json-fortran/releases/tag/
220237
from [jacobwilliams](https://github.com/jacobwilliams))
221238
- Read JSON structure from a character string
222239
[\#5](https://github.com/jacobwilliams/json-fortran/issues/5)
223-
- Adopeted official contributing guidelines and added a
240+
- Adopted official contributing guidelines and added a
224241
`CONTRIBUTING.md`
225242
[\#47](https://github.com/jacobwilliams/json-fortran/issues/47)
226243

@@ -231,11 +248,11 @@ or [Download v3.1.0](https://github.com/jacobwilliams/json-fortran/releases/tag/
231248
fixed by
232249
[PR \#54](https://github.com/jacobwilliams/json-fortran/pull/54)
233250
(from [zbeekman](https://github.com/zbeekman))
234-
- Segfaults and unexpexted behavior due to optional dummy arguments
251+
- Segfaults and unexpected behavior due to optional dummy arguments
235252
being dereferenced outside of `if (present(…))`
236253
[\#52](https://github.com/jacobwilliams/json-fortran/issues/52)
237254
- Documentation not being produced for tests because tests directory
238-
should be subdirectory of src
255+
should be sub-directory of src
239256
[\#49](https://github.com/jacobwilliams/json-fortran/issues/49)
240257
- Example 8 failing on gfortran 4.9.2
241258
[\#44](https://github.com/jacobwilliams/json-fortran/issues/44)
@@ -275,7 +292,7 @@ or [Download v3.1.0](https://github.com/jacobwilliams/json-fortran/releases/tag/
275292

276293

277294

278-
## [3.0.0](https://github.com/jacobwilliams/json-fortran/tree/3.0.0) (2015-01-18)
295+
### [3.0.0](https://github.com/jacobwilliams/json-fortran/tree/3.0.0) (2015-01-18)
279296

280297
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/2.0.0...3.0.0)
281298
or [Download v3.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/3.0.0)
@@ -310,14 +327,14 @@ or [Download v3.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/
310327

311328

312329

313-
## [2.0.0](https://github.com/jacobwilliams/json-fortran/tree/2.0.0) (2014-12-27)
330+
### [2.0.0](https://github.com/jacobwilliams/json-fortran/tree/2.0.0) (2014-12-27)
314331

315332
[Complete Changeset](https://github.com/jacobwilliams/json-fortran/compare/1.0.0...2.0.0)
316333
or [Download v2.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/2.0.0)
317334

318335
**Enhancements:**
319336
- Significant changes to the API including new procedures
320-
- Code refactoring
337+
- Code re-factoring
321338
- SCons build added thanks to [@bruceravel](https://github.com/bruceravel)
322339

323340
**Fixed issues:**
@@ -327,7 +344,7 @@ or [Download v2.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/
327344

328345

329346

330-
## [1.0.0](https://github.com/jacobwilliams/json-fortran/tree/1.0.0) (2014-06-23)
347+
### [1.0.0](https://github.com/jacobwilliams/json-fortran/tree/1.0.0) (2014-06-23)
331348

332349
[Download v1.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/1.0.0)
333350

@@ -365,15 +382,15 @@ or [Download v2.0.0](https://github.com/jacobwilliams/json-fortran/releases/tag/
365382
[ROBODoc](https://github.com/gumpu/ROBODoc) must be specified in
366383
CMakeLists.txt manually
367384
[\#17](https://github.com/jacobwilliams/json-fortran/issues/17)
368-
- Invalid json input files (`test1.json`, `test5.json`)
385+
- Invalid JSON input files (`test1.json`, `test5.json`)
369386
[\#10](https://github.com/jacobwilliams/json-fortran/issues/10),
370387
fixed by
371388
[PR \#11](https://github.com/jacobwilliams/json-fortran/pull/11)
372389
([zbeekman](https://github.com/zbeekman))
373390
- `char()` is processor dependent, use `achar()`
374391
[\#20](https://github.com/jacobwilliams/json-fortran/pull/20)
375392
(pull request from [zbeekman](https://github.com/zbeekman))
376-
- Bugfix for [ROBODoc](https://github.com/gumpu/ROBODoc) documentation
393+
- Bug-fix for [ROBODoc](https://github.com/gumpu/ROBODoc) documentation
377394
generation with [CMake](http://www.cmake.org)
378395
[\#16](https://github.com/jacobwilliams/json-fortran/pull/16)
379396
(pull request from [zbeekman](https://github.com/zbeekman))

0 commit comments

Comments
 (0)