Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #33 from Energy-MAC/jd/maintenance
Browse files Browse the repository at this point in the history
Jd/maintenance
  • Loading branch information
jd-lara authored Feb 7, 2020
2 parents 6243dd9 + 84f03fd commit d09711b
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 14 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Documentation

on:
push:
branches:
- 'master'
- 'release-'
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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs --color=yes docs/make.jl
10 changes: 0 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
## Documentation: http://docs.travis-ci.org/user/languages/julia/
language: julia
codecov: true
os:
- linux
- osx
Expand All @@ -27,15 +26,6 @@ jobs:
allow_failures:
- julia: nightly
- os: osx
include:
- stage: "Documentation"
os: linux
julia: 1.3
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
after_success: skip
after_success: julia -e '
using Pkg;
Pkg.add("Coverage");
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "LITS"
uuid = "86b0dc02-7903-11e9-325f-f195ca7e6c1a"
version = "0.3.0"
version = "0.3.1"

[deps]
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
Low Inertia Transient Simulation Toolbox for Power Systems

[![Build Status](https://travis-ci.com/Energy-MAC/LITS.jl.svg?branch=master)](https://travis-ci.com/Energy-MAC/LITS.jl)
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://energy-mac.github.io/LITS.jl/latest)
[![codecov](https://codecov.io/gh/Energy-MAC/LITS.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/Energy-MAC/LITS.jl)
![Documentation Build](https://github.com/Energy-MAC/LITS.jl/workflows/Documentation/badge.svg)
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://energy-mac.github.io/LITS.jl/latest)


To install and develop run the following:

Expand Down
14 changes: 14 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ coverage:
round: down
range: "70...100"

status:
project: # measuring the overall project coverage
default: # context, you can create multiple ones with custom titles
enabled: yes # must be yes|true to enable this status
target: auto # specify the target coverage for each commit status
# option: "auto" (must increase from parent commit or pull request base)
# option: "X%" a static target percentage to hit
threshold: 5 # allowed to drop X% and still result in a "success" commit status
if_not_found: success # if parent is not found report status as success, error, or failure
if_ci_failed: error # if ci fails report status as success, error, or failure
patch:
default:
target: 70

parsers:
gcov:
branch_detection:
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterTools = "35a29f4d-8980-5a13-9543-d66fff28ecb8"

[compat]
Documenter = "0.23"
Documenter = "0.24"
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const PSYPATH = dirname(pathof(LITS))

makedocs(
modules = [LITS],
format = Documenter.HTML(),
format = Documenter.HTML(mathengine = Documenter.MathJax()),
sitename = "LITS.jl",
pages = Any[ # Compat: `Any` for 0.4 compat
"Home" => "index.md",
Expand Down
1 change: 1 addition & 0 deletions src/LITS.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
isdefined(Base, :__precompile__) && __precompile__()
module LITS

####################################### Structs Exports ####################################
Expand Down

2 comments on commit d09711b

@jd-lara
Copy link
Member Author

@jd-lara jd-lara commented on d09711b Feb 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/8990

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.1 -m "<description of version>" d09711b374c735d63b09a130949b5a7825b3d590
git push origin v0.3.1

Please sign in to comment.