Skip to content

Commit

Permalink
Dfk/gh actions docs (#171)
Browse files Browse the repository at this point in the history
* use gh actions for docs

* update documenter version and precompile packages before building

* ditch coveralls because I'm sick of its crap
  • Loading branch information
kleinschmidt authored Feb 17, 2020
1 parent 83f010d commit 749fdcd
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 13 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Documentation

on:
push:
branches:
- 'master'
tags: '*'
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1.3.0]
julia-arch: [x86]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1.0.0
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
run: julia --project=docs/ docs/make.jl
11 changes: 1 addition & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,7 @@ julia:
matrix:
allow_failures:
julia: nightly
include:
- stage: "Documentation"
julia: 1.3
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
after_success: skip
notifications:
email: false
after_success:
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# StatsModels

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

Basic functionality for specifying, fitting, and evaluating statistical models
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ StatsModels = "3eaba693-59b7-5ba5-a881-562e759f1c8d"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

[compat]
Documenter = "~0.21"
Documenter = "~0.24"
6 changes: 5 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
using Documenter, StatsModels

using Pkg
Pkg.precompile()

makedocs(
sitename = "StatsModels.jl",
pages = [
Expand All @@ -13,5 +16,6 @@ makedocs(
)

deploydocs(
repo = "github.com/JuliaStats/StatsModels.jl.git"
repo = "github.com/JuliaStats/StatsModels.jl.git",
push_preview = true,
)

0 comments on commit 749fdcd

Please sign in to comment.