diff --git a/.travis.yml b/.travis.yml index ed2d4e6..f7a998f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,29 @@ language: julia os: - - linux + - linux julia: - - 1.0 - - 1.2 - - nightly + - 1.0 + - 1.2 + - 1.3 + - nightly matrix: allow_failures: - julia: nightly fast_finish: true notifications: email: false + +jobs: + include: + - stage: "Documentation" + os: linux + script: + - julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.build()' + - julia --project=docs/ docs/make.jl + after_success: + - julia --project=docs/ docs/deploy.jl + script: - - julia --project -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/JuliaFEM/Materials.jl")); - Pkg.build(); - Pkg.test(; coverage=true)' + - julia --project -e 'using Pkg; Pkg.build(); Pkg.test(; coverage=true)' after_success: - julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())' diff --git a/Project.toml b/Project.toml index a7fc176..8f4a479 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "FEMMaterials" uuid = "0c6c1f6c-65b6-54d6-9cff-6b64003af638" authors = ["Jukka Aho ", "Joona Vaara "] -version = "0.0.0" +version = "0.1.0" [deps] FEMBase = "fbcbbc08-f1bf-5204-9233-b69f5d396135" @@ -12,6 +12,11 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" Tensors = "48a634ad-e948-5137-8d70-aa71f2a747f4" JuliaFEM = "f80590ac-b429-510a-8a99-e7c46989f22d" + +[compat] +julia = ">= 1.0.0" # [1.0.0, ∞) +Materials = ">= 0.2.0" # [0.2.0, ∞) + [extras] DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/docs/Project.toml b/docs/Project.toml new file mode 100644 index 0000000..4a738b3 --- /dev/null +++ b/docs/Project.toml @@ -0,0 +1,8 @@ +[deps] +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +FEMBase = "fbcbbc08-f1bf-5204-9233-b69f5d396135" +JuliaFEM = "f80590ac-b429-510a-8a99-e7c46989f22d" +LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" +Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306" +Materials = "35fa313e-aa48-52ea-bc82-ddb91c7db87b" +Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" diff --git a/docs/deploy.jl b/docs/deploy.jl index 184f817..85c874f 100644 --- a/docs/deploy.jl +++ b/docs/deploy.jl @@ -5,5 +5,7 @@ using Documenter using FEMMaterials deploydocs( - deps = Deps.pip("mkdocs", "python-markdown-math"), - repo = "github.com/JuliaFEM/FEMMaterials.jl.git") + repo = "github.com/JuliaFEM/FEMMaterials.jl.git", + target = "build", + deps = nothing, + make = nothing)