From 0849471bf66b9e43a5de0c2de953c96e3de5143f Mon Sep 17 00:00:00 2001 From: Thatcher Chamberlin Date: Sun, 6 Dec 2020 14:50:16 -0500 Subject: [PATCH] Added second condition to skip display checks --- test/integration_dates.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration_dates.jl b/test/integration_dates.jl index 4d43ccaf..924d9446 100644 --- a/test/integration_dates.jl +++ b/test/integration_dates.jl @@ -13,7 +13,7 @@ using Plots, Test, Dates ref_xlims = (x[1].instant.periods.value, x[end].instant.periods.value) @test Plots.ylims(p) == ref_ylims @test Plots.xlims(p) == ref_xlims - @static if haskey(ENV, "APPVEYOR") + @static if (haskey(ENV, "APPVEYOR") || haskey(ENV, "CI")) @info "Skipping display tests on AppVeyor" else @test isa(display(p), Nothing) == true @@ -28,9 +28,9 @@ end # testset ref_xlims = map(date->date.instant.periods.value, span) p = plot(x,y, xlims=span, widen = false) - + @test Plots.xlims(p) == ref_xlims - @static if haskey(ENV, "APPVEYOR") + @static if (haskey(ENV, "APPVEYOR") || haskey(ENV, "CI")) @info "Skipping display tests on AppVeyor" else @test isa(display(p), Nothing) == true @@ -46,7 +46,7 @@ end # testset p = plot(x,y, xlims=span, widen = false) @test Plots.xlims(p) == ref_xlims - @static if haskey(ENV, "APPVEYOR") + @static if (haskey(ENV, "APPVEYOR") || haskey(ENV, "CI")) @info "Skipping display tests on AppVeyor" else @test isa(display(p), Nothing) == true