Skip to content

Commit 749fdcd

Browse files
authored
Dfk/gh actions docs (#171)
* use gh actions for docs * update documenter version and precompile packages before building * ditch coveralls because I'm sick of its crap
1 parent 83f010d commit 749fdcd

File tree

5 files changed

+35
-13
lines changed

5 files changed

+35
-13
lines changed

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
julia-version: [1.3.0]
16+
julia-arch: [x86]
17+
os: [ubuntu-latest]
18+
steps:
19+
- uses: actions/[email protected]
20+
- uses: julia-actions/setup-julia@latest
21+
with:
22+
version: ${{ matrix.julia-version }}
23+
- name: Install dependencies
24+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
25+
- name: Build and deploy
26+
env:
27+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
28+
run: julia --project=docs/ docs/make.jl

.travis.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,7 @@ julia:
1010
matrix:
1111
allow_failures:
1212
julia: nightly
13-
include:
14-
- stage: "Documentation"
15-
julia: 1.3
16-
os: linux
17-
script:
18-
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
19-
Pkg.instantiate()'
20-
- julia --project=docs/ docs/make.jl
21-
after_success: skip
2213
notifications:
2314
email: false
2415
after_success:
25-
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'
16+
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# StatsModels
22

33
[![Build Status](https://travis-ci.org/JuliaStats/StatsModels.jl.svg?branch=master)](https://travis-ci.org/JuliaStats/StatsModels.jl)
4-
[![Coverage Status](https://coveralls.io/repos/github/JuliaStats/StatsModels.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaStats/StatsModels.jl?branch=master)
54
[![codecov](https://codecov.io/gh/JuliaStats/StatsModels.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaStats/StatsModels.jl)
65

76
Basic functionality for specifying, fitting, and evaluating statistical models

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ StatsModels = "3eaba693-59b7-5ba5-a881-562e759f1c8d"
77
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
88

99
[compat]
10-
Documenter = "~0.21"
10+
Documenter = "~0.24"

docs/make.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
using Documenter, StatsModels
22

3+
using Pkg
4+
Pkg.precompile()
5+
36
makedocs(
47
sitename = "StatsModels.jl",
58
pages = [
@@ -13,5 +16,6 @@ makedocs(
1316
)
1417

1518
deploydocs(
16-
repo = "github.com/JuliaStats/StatsModels.jl.git"
19+
repo = "github.com/JuliaStats/StatsModels.jl.git",
20+
push_preview = true,
1721
)

0 commit comments

Comments
 (0)