Files
JuliaFEM.jl/test/run_lint.jl
T
Jukka Aho 436bf119b2 Set up documentation + lint (#121)
- remove some automatically generated stuff not should even be in
repository
- set up lint + Documents.jl in same way it is defined in freshly started projects
- add lint + doctest to after_success so that build pass, these needs to be fixed later
- build is failing on nightly (0.7) but it's ok for release (0.5.2)
- Documenter.jl supports doctests, so this closes least #23
- build system is now on Travis-CI completely, so this closes also #68
2017-07-19 07:34:38 +03:00

18 lines
619 B
Julia

# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
using Lint
using Base.Test
results = lintpkg("JuliaFEM")
if !isempty(results)
info("Lint.jl is a tool that uses static analysis to assist in the development process by detecting common bugs and potential issues.")
info("For this package, Lint.jl report is following:")
display(results)
info("For more information, see https://lintjl.readthedocs.io/en/stable/")
warn("Package syntax test has failed.")
@test isempty(results)
else
info("Lint.jl: syntax check pass.")
end