From 6ffdf383cf62a904eab0585334fbd4b3d5e03936 Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Thu, 6 Feb 2020 15:14:37 -0800 Subject: [PATCH 1/8] add precompile --- src/LITS.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LITS.jl b/src/LITS.jl index 58c772d..a281f03 100644 --- a/src/LITS.jl +++ b/src/LITS.jl @@ -1,3 +1,4 @@ +isdefined(Base, :__precompile__) && __precompile__() module LITS ####################################### Structs Exports #################################### From c9c7cb68add9fe761244a1842391e974d74497be Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Thu, 6 Feb 2020 15:16:26 -0800 Subject: [PATCH 2/8] update yml files --- .github/workflows/docs.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 10 ---------- 2 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..2bd4524 --- /dev/null +++ b/.github/workflows/docs.yml @@ -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 diff --git a/.travis.yml b/.travis.yml index 4ae414f..be6e3b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ ## Documentation: http://docs.travis-ci.org/user/languages/julia/ language: julia -codecov: true os: - linux - osx @@ -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"); From 800efecc1581cddf82b9be02d8ea348151d422f3 Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Thu, 6 Feb 2020 15:26:46 -0800 Subject: [PATCH 3/8] add mathjax to documenter --- docs/make.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/make.jl b/docs/make.jl index 422ce18..4370ce4 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -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", From 950649f57335633c04d33b1f8c8efb28944f81ea Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Thu, 6 Feb 2020 15:36:42 -0800 Subject: [PATCH 4/8] update toml --- docs/Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Project.toml b/docs/Project.toml index 2239972..1b01f44 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -3,4 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" DocumenterTools = "35a29f4d-8980-5a13-9543-d66fff28ecb8" [compat] -Documenter = "0.23" +Documenter = "0.24" From 9176fb3dbbcbad6999fdf2779707d253ff154363 Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Thu, 6 Feb 2020 15:36:50 -0800 Subject: [PATCH 5/8] update badges --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3afb3ff..f4d4121 100644 --- a/README.md +++ b/README.md @@ -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: From afe4f7fb2ec9e736a21bd26c4cb732b6ab648235 Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Thu, 6 Feb 2020 15:52:34 -0800 Subject: [PATCH 6/8] update toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 4bf3fe2..71ccd65 100644 --- a/Project.toml +++ b/Project.toml @@ -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" From 695e7a5de5efaa27f76aa3a78e1806700ad46f94 Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Thu, 6 Feb 2020 16:08:12 -0800 Subject: [PATCH 7/8] update codecov --- codecov.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/codecov.yml b/codecov.yml index 657d8f7..040afc0 100644 --- a/codecov.yml +++ b/codecov.yml @@ -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: 90 # 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: From 84f03fd02636fafa3fed4bc5d540ba6178dc3e8c Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Thu, 6 Feb 2020 16:21:33 -0800 Subject: [PATCH 8/8] change codecov target --- codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index 040afc0..b3096f7 100644 --- a/codecov.yml +++ b/codecov.yml @@ -10,7 +10,7 @@ coverage: 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: 90 # specify the target coverage for each commit 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