Skip to content

Commit

Permalink
Refresh CI infrastructure
Browse files Browse the repository at this point in the history
Switch from Travis to GitHub,
Also, update TagBot etc.
  • Loading branch information
carlobaldassi committed Mar 14, 2021
1 parent 5ccf782 commit c0cc915
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 54 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DEPLOY_KEY }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI
on:
push:
branches:
- master
tags: '*'
pull_request:
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
matrix:
version:
- '1.0'
- '1.5'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
exclude:
# Remove some configurations from the build matrix to reduce CI time.
# See https://github.com/marketplace/actions/setup-julia-environment
- {os: 'macOS-latest', arch: 'x86'}
- {os: 'windows-latest', arch: 'x86'}
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
24 changes: 24 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Documentation

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.5'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
run: julia --project=docs/ docs/make.jl
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Manifest.toml
build/
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

[compat]
Documenter = "0.24"
Documenter = "0.26"
7 changes: 0 additions & 7 deletions docs/coverage.jl

This file was deleted.

6 changes: 4 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using Documenter, ArgParse

CIbuild = get(ENV, "CI", nothing) == "true"

makedocs(
modules = [ArgParse],
format = Documenter.HTML(prettyurls = "--local" ARGS),
format = Documenter.HTML(prettyurls = CIbuild),
sitename = "ArgParse.jl",
pages = [
pages = Any[
"Home" => "index.md",
"Manual" => [
"parse_args.md",
Expand Down
2 changes: 2 additions & 0 deletions docs/src/arg_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ settings = ArgParseSettings();
action = :command
end;
settings.exit_after_help = false # hide
parse_args(["--help"], settings)
```

Expand Down

0 comments on commit c0cc915

Please sign in to comment.