-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs and coverage uses travis-ci * unit test uses github action * appveyor is not used anymore * update docs/make.jl for Documenter v0.24
- Loading branch information
1 parent
170b7e0
commit 0c335a6
Showing
9 changed files
with
78 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Unit test | ||
|
||
on: | ||
create: | ||
tags: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
schedule: | ||
- cron: '20 00 1 * *' | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
julia-version: ['1.0', '1', 'nightly'] | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: "Set up Julia" | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
|
||
- name: "Unit Test" | ||
uses: julia-actions/julia-runtest@master | ||
|
||
# Unless tokenless upload is enabled, we can only submit coverage via | ||
# environment variable. But PRs from other fork can't do that. | ||
# See issue: https://github.com/julia-actions/julia-uploadcodecov/issues/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.jl.*.cov | ||
*.jl.mem | ||
/Manifest.toml | ||
/docs/Manifest.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,21 @@ | ||
## Documentation: http://docs.travis-ci.com/user/languages/julia/ | ||
# Until https://github.com/julia-actions/julia-uploadcodecov/issues/1 get fixed | ||
# submit coverage report via travis | ||
language: julia | ||
os: | ||
- linux | ||
- osx | ||
julia: | ||
- 1.0 | ||
- 1 | ||
- nightly | ||
julia: 1.0 | ||
os: linux | ||
notifications: | ||
email: false | ||
git: | ||
depth: 99999999 | ||
|
||
## uncomment the following lines to allow failures on nightly julia | ||
## (tests will run but not make your overall status red) | ||
matrix: | ||
allow_failures: | ||
- julia: nightly | ||
|
||
## uncomment and modify the following lines to manually install system packages | ||
#addons: | ||
# apt: # apt-get for linux | ||
# packages: | ||
# - gfortran | ||
#before_script: # homebrew for mac | ||
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi | ||
email: false | ||
|
||
env: | ||
- DOCUMENTER_DEBUG=true | ||
jobs: | ||
include: | ||
- stage: deploy | ||
julia: 1.0 | ||
os: linux | ||
script: | ||
- julia -e 'import Pkg; ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps)' | ||
- julia -e 'import ReferenceTests; ENV["DOCUMENTER_DEBUG"] = "true"; include(joinpath("docs","make.jl"))' | ||
- stage: Coverage | ||
codecov: true | ||
coveralls: true | ||
|
||
# use default script for test | ||
|
||
after_success: | ||
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())' | ||
- stage: Documentation | ||
script: | ||
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); | ||
Pkg.instantiate()' | ||
- julia --project=docs/ docs/make.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
ReferenceTests = "324d217c-45ce-50fc-942e-d289b448e8cf" | ||
|
||
[compat] | ||
Documenter = "0.24" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
using Documenter, ReferenceTests | ||
|
||
format = Documenter.HTML(edit_link = "master", | ||
prettyurls = get(ENV, "CI", nothing) == "true") | ||
|
||
makedocs( | ||
format = format, | ||
modules = [ReferenceTests], | ||
clean = false, | ||
format = :html, | ||
sitename = "ReferenceTests.jl", | ||
authors = "Christof Stocker", | ||
linkcheck = !("skiplinks" in ARGS), | ||
pages = Any[ | ||
"Home" => "index.md", | ||
], | ||
html_prettyurls = !("local" in ARGS), | ||
] | ||
) | ||
|
||
deploydocs( | ||
repo = "github.com/Evizero/ReferenceTests.jl.git", | ||
target = "build", | ||
julia = "1.0", | ||
deps = nothing, | ||
make = nothing, | ||
) | ||
deploydocs(repo = "github.com/johnnychen94/DemoCards.jl.git") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,5 @@ Pages = ["index.md"] | |
@withcolor | ||
@io2str | ||
@test_reference | ||
psnr_equality | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters