Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #1689

Merged
merged 11 commits into from
Aug 26, 2018
Prev Previous commit
Next Next commit
Use pathof(PlotReferenceImages) instead of Pkg.dir
tkf committed Aug 25, 2018
commit 80da14c1fbefcfd92329c32a445941fe84567c27
4 changes: 2 additions & 2 deletions test/imgcomp.jl
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ using VisualRegressionTests

using Plots
# using StatPlots
using Pkg
using PlotReferenceImages
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just import PlotReferenceImages? You're just using it for pathof, right?

using Random
using Test

@@ -40,7 +40,7 @@ function image_comparison_tests(pkg::Symbol, idx::Int; debug = false, popup = is

# reference image directory setup
# refdir = joinpath(Pkg.dir("ExamplePlots"), "test", "refimg", string(pkg))
refdir = Pkg.dir("PlotReferenceImages", "Plots", string(pkg))
refdir = joinpath(dirname(pathof(PlotReferenceImages)), "..", "Plots", string(pkg))
fn = "ref$idx.png"

# firgure out version info