I would very much so appreciate some help with building documentation on Travis. I have this package which the only thing it does is host the documentation: https://github.com/JuliaMusic/JuliaMusic_documentation.jl
with source
module JuliaMusic_documentation
using Reexport
@reexport using MIDI, MotifSequenceGenerator, MusicManipulations
end
(all the above packages are in the REQUIRE
).
My travis build is trivial, it has no “script”, (uses the default) and after that I have
after_success:
- julia -e 'Pkg.add("Documenter"); Pkg.add("Literate")'
- julia -e 'cd(Pkg.dir("JuliaMusic_documentation")); include(joinpath("docs", "make.jl"))'
My make.jl
is
using JuliaMusic_documentation
using Documenter, Literate
docdir = @__DIR__
docdir *= "/src/"
tobe = ["motif/musicexample.jl"]
for file in tobe
f = docdir*file
Literate.markdown(f, dirname(f))
end
makedocs(modules=[JuliaMusic_documentation], doctest=false)
#%% Deploy
deploydocs(
deps = Deps.pip("Tornado>=4.0.0,<5.0.0", "mkdocs",
"mkdocs-material" ,"python-markdown-math", "pygments", "pymdown-extensions"),
repo = "github.com/JuliaMusic/JuliaMusic_documentation.jl.git",
julia = "nightly",
osname = "linux"
)
Here is the problem: When I run on travis, it tells me that when documeter runs, it can’t find the packages MIDI, MusicManipulations
, etc. I don’t know why!
WARNING: importing deprecated binding Base.gamma into Combinatorics.
Documenter: setting up build directory.
Documenter: expanding markdown templates.
!! failed to run code block.
ArgumentError("Package MusicManipulations not found in current path:\n- Run `Pkg.add(\"MusicManipulations\")` to install the MusicManipulations package.\n") [src/mm/quantizing.md]
!! failed to run code block.
ArgumentError("Package MIDI not found in current path:\n- Run `Pkg.add(\"MIDI\")` to install the MIDI package.\n") [src/midi/notes.md]
!! failed to run code block.
UndefVarError(:midi) [src/midi/notes.md]
!! failed to run code block.
The travis fail is here: Travis CI - Test and Deploy Your Code with Confidence