Preempt IMG_TOL with env variable
This commit is contained in:
parent
86fbb39723
commit
a39582c06e
@ -71,27 +71,32 @@ include("imgcomp.jl")
|
|||||||
Random.seed!(1234)
|
Random.seed!(1234)
|
||||||
default(show=false, reuse=true)
|
default(show=false, reuse=true)
|
||||||
is_ci() = get(ENV, "CI", "false") == "true"
|
is_ci() = get(ENV, "CI", "false") == "true"
|
||||||
const IMG_TOL = VERSION < v"1.4" && Sys.iswindows() ? 1e-1 : is_ci() ? 1e-2 : 1e-3
|
const PLOTS_IMG_TOL = parse(
|
||||||
|
Float64, get(
|
||||||
|
ENV, "PLOTS_IMG_TOL",
|
||||||
|
VERSION < v"1.4" && Sys.iswindows() ? "1e-1" : is_ci() ? "1e-2" : "1e-3"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
## Uncomment the following lines to update reference images for different backends
|
## Uncomment the following lines to update reference images for different backends
|
||||||
|
|
||||||
# @testset "GR" begin
|
# @testset "GR" begin
|
||||||
# image_comparison_facts(:gr, tol=IMG_TOL, skip = Plots._backend_skips[:gr])
|
# image_comparison_facts(:gr, tol=PLOTS_IMG_TOL, skip = Plots._backend_skips[:gr])
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# plotly()
|
# plotly()
|
||||||
# @testset "Plotly" begin
|
# @testset "Plotly" begin
|
||||||
# image_comparison_facts(:plotly, tol=IMG_TOL, skip = Plots._backend_skips[:plotlyjs])
|
# image_comparison_facts(:plotly, tol=PLOTS_IMG_TOL, skip = Plots._backend_skips[:plotlyjs])
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# pyplot()
|
# pyplot()
|
||||||
# @testset "PyPlot" begin
|
# @testset "PyPlot" begin
|
||||||
# image_comparison_facts(:pyplot, tol=IMG_TOL, skip = Plots._backend_skips[:pyplot])
|
# image_comparison_facts(:pyplot, tol=PLOTS_IMG_TOL, skip = Plots._backend_skips[:pyplot])
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# pgfplotsx()
|
# pgfplotsx()
|
||||||
# @testset "PGFPlotsX" begin
|
# @testset "PGFPlotsX" begin
|
||||||
# image_comparison_facts(:pgfplotsx, tol=IMG_TOL, skip = Plots._backend_skips[:pgfplotsx])
|
# image_comparison_facts(:pgfplotsx, tol=PLOTS_IMG_TOL, skip = Plots._backend_skips[:pgfplotsx])
|
||||||
# end
|
# end
|
||||||
|
|
||||||
# 10 Histogram2D
|
# 10 Histogram2D
|
||||||
@ -109,7 +114,7 @@ const IMG_TOL = VERSION < v"1.4" && Sys.iswindows() ? 1e-1 : is_ci() ? 1e-2 : 1e
|
|||||||
@static if haskey(ENV, "APPVEYOR")
|
@static if haskey(ENV, "APPVEYOR")
|
||||||
@info "Skipping GR image comparison tests on AppVeyor"
|
@info "Skipping GR image comparison tests on AppVeyor"
|
||||||
else
|
else
|
||||||
image_comparison_facts(:gr, tol=IMG_TOL, skip=Plots._backend_skips[:gr])
|
image_comparison_facts(:gr, tol=PLOTS_IMG_TOL, skip=Plots._backend_skips[:gr])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user