Use PkgTestSuite for CI (#131)

This standardizes the CI process between JuliaFEM packages
This commit is contained in:
Jukka Aho
2017-07-21 16:28:03 +03:00
committed by GitHub
parent 2af7e0e1bb
commit e13d6482ce
5 changed files with 4 additions and 78 deletions
+4 -15
View File
@@ -12,20 +12,9 @@ notifications:
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
before_script:
- julia --color=yes -e 'Pkg.clone(pwd())'
- julia --color=yes -e 'Pkg.add("Coverage")'
- julia --color=yes -e 'Pkg.add("Documenter")'
- julia --color=yes -e 'Pkg.add("Lint")'
- julia --color=yes -e 'Pkg.clone("https://github.com/ahojukka5/CheckHeader.jl.git")'
- julia --color=yes -e 'Pkg.clone("https://github.com/ahojukka5/CheckTabs.jl.git")'
- julia --color=yes -e 'Pkg.clone("https://github.com/JuliaFEM/PkgTestSuite.jl.git")'
- julia --color=yes -e 'using PkgTestSuite; init()'
script:
- julia --color=yes -e 'Pkg.build("JuliaFEM")'
- julia --color=yes -e 'using CheckHeader; checkheader("JuliaFEM")'
- julia --color=yes -e 'using CheckTabs; checktabs("JuliaFEM")'
- julia --color=yes -e 'Pkg.test("JuliaFEM", coverage=true)'
- julia --color=yes -e 'using PkgTestSuite; test()'
after_success:
- julia --color=yes -e 'cd(Pkg.dir("JuliaFEM", "test")); include("run_lint.jl")'
- julia --color=yes -e 'cd(Pkg.dir("JuliaFEM", "docs")); include("make.jl")'
- julia --color=yes -e 'cd(Pkg.dir("JuliaFEM")); using Coverage; Coveralls.submit(Coveralls.process_folder())'
- julia --color=yes -e 'cd(Pkg.dir("JuliaFEM", "docs")); include("deploy.jl")'
- julia --color=yes -e 'using PkgTestSuite; deploy()'
-10
View File
@@ -1,10 +0,0 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE
using Documenter
using JuliaFEM
deploydocs(
deps = Deps.pip("mkdocs", "python-markdown-math"),
repo = "github.com/JuliaFEM/JuliaFEM.jl.git",
julia = "0.6")
-10
View File
@@ -1,10 +0,0 @@
# This file is a part of project JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/NodeNumbering.jl/blob/master/LICENSE
using Documenter
using JuliaFEM
makedocs(
modules = [JuliaFEM],
checkdocs = :all,
strict = false)
-26
View File
@@ -1,26 +0,0 @@
site_name: JuliaFEM.jl
repo_url: https://github.com/JuliaFEM/JuliaFEM.jl
site_description: Finite Element Method solver
site_author: ahojukka5
theme: readthedocs
extra_css:
- assets/Documenter.css
extra_javascript:
- https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
- assets/mathjaxhelper.js
markdown_extensions:
- extra
- tables
- fenced_code
- footnotes
- mdx_math:
enable_dollar_delimiter: True
docs_dir: 'build'
pages:
- Home: index.md
-17
View File
@@ -1,17 +0,0 @@
# 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