make tests pass for gr and pyplot cf. #877
This commit is contained in:
parent
92688f03a8
commit
90f7e370f3
@ -13,7 +13,7 @@ try
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
using Plots
|
# using Plots # reexported by StatPlots
|
||||||
using StatPlots
|
using StatPlots
|
||||||
using FactCheck
|
using FactCheck
|
||||||
using Glob
|
using Glob
|
||||||
|
|||||||
@ -5,9 +5,11 @@ set -ex
|
|||||||
sudo apt-get -qq update
|
sudo apt-get -qq update
|
||||||
# sudo apt-get install -y wkhtmltopdf
|
# sudo apt-get install -y wkhtmltopdf
|
||||||
|
|
||||||
sudo apt-get install -y xfonts-75dpi
|
sudo apt-get install -y xfonts-base
|
||||||
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2/wkhtmltox-0.12.2_linux-trusty-amd64.deb
|
wget https://downloads.wkhtmltopdf.org/0.12/0.12.2/wkhtmltox-0.12.2_linux-precise-amd64.deb
|
||||||
sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb
|
sudo dpkg -i wkhtmltox-0.12.2_linux-precise-amd64.deb
|
||||||
|
# wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2/wkhtmltox-0.12.2_linux-trusty-amd64.deb
|
||||||
|
# sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb
|
||||||
wkhtmltoimage http://www.google.com test.png
|
wkhtmltoimage http://www.google.com test.png
|
||||||
ls
|
ls
|
||||||
|
|
||||||
|
|||||||
@ -19,31 +19,74 @@ img_eps = isinteractive() ? 1e-2 : 10e-2
|
|||||||
# image_comparison_facts(:gadfly, skip=[4,6,23,24,27], eps=img_eps)
|
# image_comparison_facts(:gadfly, skip=[4,6,23,24,27], eps=img_eps)
|
||||||
# end
|
# end
|
||||||
|
|
||||||
facts("PyPlot") do
|
|
||||||
@fact pyplot() --> Plots.PyPlotBackend()
|
|
||||||
@fact backend() --> Plots.PyPlotBackend()
|
|
||||||
|
|
||||||
image_comparison_facts(:pyplot, skip=[6,25,30,31], eps=img_eps)
|
|
||||||
end
|
|
||||||
|
|
||||||
facts("GR") do
|
facts("GR") do
|
||||||
@fact gr() --> Plots.GRBackend()
|
@fact gr() --> Plots.GRBackend()
|
||||||
@fact backend() --> Plots.GRBackend()
|
@fact backend() --> Plots.GRBackend()
|
||||||
|
|
||||||
if is_linux() && isinteractive()
|
image_comparison_facts(:gr, eps=img_eps)
|
||||||
image_comparison_facts(:gr, skip=[2,25,30,31], eps=img_eps)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
facts("Plotly") do
|
|
||||||
@fact plotly() --> Plots.PlotlyBackend()
|
|
||||||
@fact backend() --> Plots.PlotlyBackend()
|
|
||||||
|
|
||||||
# # until png generation is reliable on OSX, just test on linux
|
facts("PyPlot") do
|
||||||
# @static is_linux() && image_comparison_facts(:plotly, only=[1,3,4,7,8,9,10,11,12,14,15,20,22,23,27], eps=img_eps)
|
@fact pyplot() --> Plots.PyPlotBackend()
|
||||||
|
@fact backend() --> Plots.PyPlotBackend()
|
||||||
|
|
||||||
|
image_comparison_facts(:pyplot, eps=img_eps)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
# The plotlyjs testimages return a connection error on travis:
|
||||||
|
# connect: connection refused (ECONNREFUSED)
|
||||||
|
|
||||||
|
# facts("PlotlyJS") do
|
||||||
|
# @fact plotlyjs() --> Plots.PlotlyJSBackend()
|
||||||
|
# @fact backend() --> Plots.PlotlyJSBackend()
|
||||||
|
#
|
||||||
|
# if is_linux() && isinteractive()
|
||||||
|
# image_comparison_facts(:plotlyjs,
|
||||||
|
# skip=[
|
||||||
|
# 2, # animation (skipped for speed)
|
||||||
|
# 27, # (polar plots) takes very long / not working
|
||||||
|
# 31, # animation (skipped for speed)
|
||||||
|
# ],
|
||||||
|
# eps=img_eps)
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
|
||||||
|
|
||||||
|
# InspectDR returns that error on travis:
|
||||||
|
# ERROR: LoadError: InitError: Cannot open display:
|
||||||
|
# in Gtk.GLib.GError(::Gtk.##229#230) at /home/travis/.julia/v0.5/Gtk/src/GLib/gerror.jl:17
|
||||||
|
|
||||||
|
# facts("InspectDR") do
|
||||||
|
# @fact inspectdr() --> Plots.InspectDRBackend()
|
||||||
|
# @fact backend() --> Plots.InspectDRBackend()
|
||||||
|
#
|
||||||
|
# image_comparison_facts(:inspectdr,
|
||||||
|
# skip=[
|
||||||
|
# 2, # animation
|
||||||
|
# 6, # heatmap not defined
|
||||||
|
# 10, # heatmap not defined
|
||||||
|
# 22, # contour not defined
|
||||||
|
# 23, # pie not defined
|
||||||
|
# 27, # polar plot not working
|
||||||
|
# 28, # heatmap not defined
|
||||||
|
# 31, # animation
|
||||||
|
# ],
|
||||||
|
# eps=img_eps)
|
||||||
|
# end
|
||||||
|
|
||||||
|
|
||||||
|
# facts("Plotly") do
|
||||||
|
# @fact plotly() --> Plots.PlotlyBackend()
|
||||||
|
# @fact backend() --> Plots.PlotlyBackend()
|
||||||
|
#
|
||||||
|
# # # until png generation is reliable on OSX, just test on linux
|
||||||
|
# # @static is_linux() && image_comparison_facts(:plotly, only=[1,3,4,7,8,9,10,11,12,14,15,20,22,23,27], eps=img_eps)
|
||||||
|
# end
|
||||||
|
|
||||||
|
|
||||||
# facts("Immerse") do
|
# facts("Immerse") do
|
||||||
# @fact immerse() --> Plots.ImmerseBackend()
|
# @fact immerse() --> Plots.ImmerseBackend()
|
||||||
# @fact backend() --> Plots.ImmerseBackend()
|
# @fact backend() --> Plots.ImmerseBackend()
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
# Pkg.clone("ImageMagick")
|
Pkg.clone("ImageMagick")
|
||||||
# Pkg.build("ImageMagick")
|
Pkg.build("ImageMagick")
|
||||||
|
|
||||||
# Pkg.clone("GR")
|
Pkg.clone("GR")
|
||||||
# Pkg.build("GR")
|
Pkg.build("GR")
|
||||||
|
|
||||||
Pkg.clone("https://github.com/JuliaPlots/PlotReferenceImages.jl.git")
|
Pkg.clone("https://github.com/JuliaPlots/PlotReferenceImages.jl.git")
|
||||||
|
|
||||||
@ -11,11 +11,12 @@ Pkg.clone("https://github.com/JuliaPlots/PlotReferenceImages.jl.git")
|
|||||||
Pkg.clone("StatPlots")
|
Pkg.clone("StatPlots")
|
||||||
Pkg.checkout("PlotUtils")
|
Pkg.checkout("PlotUtils")
|
||||||
|
|
||||||
# Pkg.clone("https://github.com/JunoLab/Blink.jl.git")
|
# Pkg.clone("Blink")
|
||||||
# Pkg.build("Blink")
|
# Pkg.build("Blink")
|
||||||
# import Blink
|
# import Blink
|
||||||
# Blink.AtomShell.install()
|
# Blink.AtomShell.install()
|
||||||
# Pkg.clone("https://github.com/spencerlyon2/PlotlyJS.jl.git")
|
# Pkg.add("Rsvg")
|
||||||
|
# Pkg.add("PlotlyJS")
|
||||||
|
|
||||||
# Pkg.checkout("RecipesBase")
|
# Pkg.checkout("RecipesBase")
|
||||||
# Pkg.clone("VisualRegressionTests")
|
# Pkg.clone("VisualRegressionTests")
|
||||||
@ -25,4 +26,6 @@ ENV["PYTHON"] = ""
|
|||||||
Pkg.add("PyPlot")
|
Pkg.add("PyPlot")
|
||||||
Pkg.build("PyPlot")
|
Pkg.build("PyPlot")
|
||||||
|
|
||||||
|
# Pkg.add("InspectDR")
|
||||||
|
|
||||||
Pkg.test("Plots"; coverage=false)
|
Pkg.test("Plots"; coverage=false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user