Skip to content

Commit b400fb6

Browse files
committed
Move docs to GitHub Actions
Travis docs don't seem to be building, so it probably makes sense to move to GitHub Actions.
1 parent 77f42a5 commit b400fb6

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

.github/workflows/Documenter.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
docs-build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Install dependencies
16+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.build(;verbose=true)'
17+
- name: Build and deploy
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
run: julia --project=docs/ docs/make.jl

.travis.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,8 @@ before_install:
8282
jobs:
8383
include:
8484
- stage: "Tests" # implicit first stage
85-
- stage: "Documentation"
86-
julia: 1.0
87-
os: linux
88-
script:
89-
- export DOCUMENTER_DEBUG="true"
90-
- julia --color=yes --project=docs/ -e 'using Pkg;
91-
Pkg.develop(PackageSpec(path=pwd()));
92-
Pkg.instantiate();
93-
Pkg.build()'
94-
- julia --color=yes --project=docs/ docs/make.jl
9585
- stage: "Coverage"
96-
julia: 1.0
86+
julia: 1.4
9787
os: linux
9888
after_success: # Intentionally rerun tests
9989
- julia -e 'using Pkg; cd(Pkg.dir("MPI")); Pkg.add("Coverage")'

docs/make.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ for (example_title, example_md) in EXAMPLES
2727
println(mdfile, "```")
2828
println(mdfile, "> mpiexec -n 3 julia $example_jl")
2929
cd(@__DIR__) do
30-
write(mdfile, read(`$(MPI.mpiexec_path) -n 3 $(joinpath(Sys.BINDIR, Base.julia_exename())) --project $example_jl`))
30+
write(mdfile, mpiexec(cmd -> read(`$cmd -n 3 $(Base.julia_cmd()) --project $example_jl`)))
3131
end
3232
println(mdfile, "```")
3333
end
@@ -63,5 +63,6 @@ makedocs(
6363
)
6464

6565
deploydocs(
66-
repo = "github.com/JuliaParallel/MPI.jl.git"
66+
repo = "github.com/JuliaParallel/MPI.jl.git",
67+
push_preview = true,
6768
)

0 commit comments

Comments
 (0)