-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manually use [email protected] on windows with explicit artifact (#25)
* ship kaleido v0.1 as own artifact on windows * use artifact"" only on Windows * test absence of `@warn` for start on Windows * adapt warning on timeout * add mention to the README
- Loading branch information
Showing
5 changed files
with
68 additions
and
18 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,16 @@ | ||
[[Kaleido_fallback]] | ||
arch = "i686" | ||
git-tree-sha1 = "2c005b45d9aaa0e217791b3431d9e61e18806cd1" | ||
os = "windows" | ||
|
||
[[Kaleido_fallback.download]] | ||
sha256 = "4b81d3f958281f53bb2f462d2745766f615a6d094b2cc59a0b03fe38c73d1b8a" | ||
url = "https://github.com/JuliaBinaryWrappers/Kaleido_jll.jl/releases/download/Kaleido-v0.1.0+0/Kaleido.v0.1.0.i686-w64-mingw32.tar.gz" | ||
[[Kaleido_fallback]] | ||
arch = "x86_64" | ||
git-tree-sha1 = "aa3e0157eff69c2604027b85f1ff85a59bfae52f" | ||
os = "windows" | ||
|
||
[[Kaleido_fallback.download]] | ||
sha256 = "52bce20e749b9955ee4dd3b22fa44dbdc9a6c4a4d447e243d8c016d4b730d496" | ||
url = "https://github.com/JuliaBinaryWrappers/Kaleido_jll.jl/releases/download/Kaleido-v0.1.0+0/Kaleido.v0.1.0.x86_64-w64-mingw32.tar.gz" |
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 |
---|---|---|
|
@@ -4,21 +4,23 @@ authors = ["Simon Christ <[email protected]>", "Spencer Lyon <spencerl | |
version = "2.2.5" | ||
|
||
[deps] | ||
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33" | ||
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | ||
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" | ||
Kaleido_jll = "f7e6163d-2fa5-5f23-b69c-1db539e41963" | ||
|
||
[compat] | ||
Artifacts = "1" | ||
JSON = "0.21" | ||
julia = "1.6" | ||
Kaleido_jll = "0.1, 0.2" | ||
julia = "1.6" | ||
|
||
[extras] | ||
EasyConfig = "acab07b0-f158-46d4-8913-50acef6d41fe" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
PlotlyJS = "f0f68f2c-4968-5e81-91da-67840de0976a" | ||
PlotlyLight = "ca7969ec-10b3-423e-8d99-40f33abb42bf" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
|
||
[targets] | ||
test = ["Test", "PlotlyLight", "EasyConfig", "PlotlyJS", "Pkg"] |
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 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 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,21 +1,17 @@ | ||
using Test | ||
import Pkg | ||
if Sys.iswindows() | ||
# Fix kaleido tests on windows due to [email protected] hanging | ||
Pkg.add(;name = "Kaleido_jll", version = "0.1") | ||
end | ||
@test_nowarn @eval using PlotlyKaleido | ||
|
||
@testset "Start" begin | ||
@testset "Start" begin | ||
if Sys.iswindows() | ||
PlotlyKaleido.start() | ||
# We use @test_logs without log patterns to test that no @warn is thrown, as specified in the docstring of `@test_logs` | ||
@test_logs PlotlyKaleido.start() | ||
else | ||
@test_nowarn PlotlyKaleido.start() | ||
end | ||
@test PlotlyKaleido.is_running() | ||
end | ||
|
||
|
||
import PlotlyLight, EasyConfig, PlotlyJS | ||
|
||
@testset "Saving JSON String" begin | ||
|
@@ -62,5 +58,4 @@ end | |
@testset "Shutdown" begin | ||
PlotlyKaleido.kill_kaleido() | ||
@test !PlotlyKaleido.is_running() | ||
|
||
end |
8e77014
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
8e77014
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error while trying to register: Version 2.2.5 already exists