Skip to content

Commit

Permalink
minor changes to cmake and travis build
Browse files Browse the repository at this point in the history
* marked cmake build option for example as advanced, since there are no
examples yet.
* updated travis to push documentation and coverage to github pages.

Signed-off-by: Lakshman Anumolu <[email protected]>
  • Loading branch information
acrlakshman committed Mar 16, 2020
1 parent a52563d commit 9278c44
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ matrix:
osx_image: xcode10.1
compiler: clang
env: INSTALL_CXX=clang++ INSTALL_CC=clang
install:
- brew install doxygen

before_install:
- gem install coveralls-lcov

script:
- mkdir -p build
- cd build
- CC=$INSTALL_CC CXX=$INSTALL_CXX cmake ../ -DMeshIO_BUILD_COVERAGE:BOOL=ON
- CC=$INSTALL_CC CXX=$INSTALL_CXX cmake ../ -DMeshIO_BUILD_COVERAGE:BOOL=ON -DMeshIO_BUILD_DOCS:BOOL=ON
- make -j4
- ctest --output-on-failure

Expand All @@ -57,5 +59,15 @@ after_success:
brew install lcov;
fi
- lcov --directory test --base-directory ../include/meshio/ --capture --no-external --output-file coverage.info
- genhtml coverage.info --output-directory ./docs/html/coverage
- lcov --remove coverage.info '/usr*' -o coverage.info
- coveralls-lcov coverage.info

deploy:
provider: pages
skip_cleanup: true
local_dir: ./build/docs/html
github_token: $GH_REPO_TOKEN
on:
branch: master
os: osx
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/include"
)

mark_as_advanced(MeshIO_BUILD_COVERAGE)
mark_as_advanced(MeshIO_BUILD_DOCS)
mark_as_advanced(MeshIO_BUILD_EXAMPLES)
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ Currently supported formats
* STL

We plan to add support for Wavefront OBJ format next.

## Documentation

* [Documentation]
* [Coverage]

[Documentation]: https://9prady9.github.io/meshio/
[Coverage]: https://9prady9.github.io/meshio/coverage
2 changes: 1 addition & 1 deletion docs/doxygen.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ HTML_OUTPUT = html
# The default value is: .html.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_FILE_EXTENSION = .htm
HTML_FILE_EXTENSION = .html

# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
# each generated HTML page. If the tag is left blank doxygen will generate a
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ A header only library to load/store polygonal meshes.

No Examples Written Yet.

## Documentation

* [Documentation]
* [Coverage]

#### Email

* Engineering: [email protected]; [email protected]

[Documentation]: https://9prady9.github.io/meshio/
[Coverage]: https://9prady9.github.io/meshio/coverage

0 comments on commit 9278c44

Please sign in to comment.