-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
project-base docs and coverage deployment (#27)
Project-base docs and coverage deployment.
- Loading branch information
Showing
7 changed files
with
41 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
# Documentation: http://docs.travis-ci.com/user/languages/julia/ | ||
## Documentation: http://docs.travis-ci.com/user/languages/julia/ | ||
language: julia | ||
os: | ||
- linux | ||
# - osx | ||
# - osx | ||
julia: | ||
- 1.0 | ||
- nightly | ||
notifications: | ||
email: false | ||
matrix: | ||
allow_failures: | ||
- julia: nightly | ||
# uncomment the following lines for debugging Documenter.jl | ||
# env: | ||
# - DOCUMENTER_DEBUG=true | ||
before_script: | ||
# install unregistered dependencies (FIXME remove when they are registered) | ||
- julia -e 'using Pkg; pkg"resolve"' | ||
# uncomment the following lines to override the default test script | ||
# script: | ||
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi | ||
# - julia test-script.jl | ||
git: | ||
depth: 99999999 | ||
|
||
## uncomment the following lines to allow failures on nightly julia | ||
## (tests will run but not make your overall status red) | ||
#matrix: | ||
# allow_failures: | ||
# - julia: nightly | ||
|
||
jobs: | ||
include: | ||
- stage: Documentation | ||
julia: 1.0 | ||
os: linux | ||
script: | ||
- julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.develop(PackageSpec(path=pwd()))' | ||
- julia --project=docs --color=yes docs/make.jl | ||
after_success: skip | ||
after_success: | ||
# push coverage results to Coveralls | ||
- julia -e 'import Pkg; cd(Pkg.dir("DynamicHMC")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())' | ||
# push coverage results to Codecov | ||
- julia -e 'import Pkg; cd(Pkg.dir("DynamicHMC")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())' | ||
# build documentation | ||
- julia -e 'import Pkg; ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps)' | ||
- julia -e 'import Pkg; cd(Pkg.dir("DynamicHMC")); include(joinpath("docs", "make.jl"))' | ||
- julia --project=test/coverage -e 'using Pkg; Pkg.instantiate()' | ||
- julia --project=test/coverage test/coverage/coverage.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
|
||
[compat] | ||
Documenter = "~0.20" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[deps] | ||
Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# only push coverage from one bot | ||
get(ENV, "TRAVIS_OS_NAME", nothing) == "linux" || exit(0) | ||
get(ENV, "TRAVIS_JULIA_VERSION", nothing) == "1.0" || exit(0) | ||
|
||
using Coverage | ||
|
||
cd(joinpath(@__DIR__, "..", "..")) do | ||
Codecov.submit(Codecov.process_folder()) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters