commit
25190d945d
@ -43,10 +43,10 @@ before_install:
|
|||||||
notifications:
|
notifications:
|
||||||
email: true
|
email: true
|
||||||
# uncomment the following lines to override the default test script
|
# uncomment the following lines to override the default test script
|
||||||
script:
|
# script:
|
||||||
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
|
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
|
||||||
- julia -e 'import Pkg; Pkg.add(Pkg.PackageSpec(path=pwd())); Pkg.build("Plots")'
|
# - julia -e 'import Pkg; Pkg.add(Pkg.PackageSpec(path=pwd())); Pkg.build("Plots")'
|
||||||
- julia test/travis_commands.jl
|
# - julia test/travis_commands.jl
|
||||||
# - julia -e 'Pkg.clone("ImageMagick"); Pkg.build("ImageMagick")'
|
# - julia -e 'Pkg.clone("ImageMagick"); Pkg.build("ImageMagick")'
|
||||||
# - julia -e 'Pkg.clone("GR"); Pkg.build("GR")'
|
# - julia -e 'Pkg.clone("GR"); Pkg.build("GR")'
|
||||||
# # - julia -e 'Pkg.clone("https://github.com/tbreloff/ImageMagick.jl.git"); Pkg.checkout("ImageMagick","tb_write"); Pkg.build("ImageMagick")'
|
# # - julia -e 'Pkg.clone("https://github.com/tbreloff/ImageMagick.jl.git"); Pkg.checkout("ImageMagick","tb_write"); Pkg.build("ImageMagick")'
|
||||||
|
|||||||
@ -31,8 +31,11 @@ install:
|
|||||||
build_script:
|
build_script:
|
||||||
# Need to convert from shallow to complete for Pkg.clone to work
|
# Need to convert from shallow to complete for Pkg.clone to work
|
||||||
- IF EXIST .git\shallow (git fetch --unshallow)
|
- IF EXIST .git\shallow (git fetch --unshallow)
|
||||||
- C:\projects\julia\bin\julia -e "versioninfo(); Pkg.clone(pwd(), \"Plots\"); Pkg.build(\"Plots\")"
|
- C:\projects\julia\bin\julia -e "
|
||||||
|
using InteractiveUtils, Pkg;
|
||||||
|
versioninfo();
|
||||||
|
Pkg.clone(pwd(), \"Plots\");
|
||||||
|
Pkg.build(\"Plots\")"
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
# - C:\projects\julia\bin\julia -e "Pkg.test(\"Plots\")"
|
- C:\projects\julia\bin\julia -e "using Pkg; Pkg.test(\"Plots\")"
|
||||||
- C:\projects\julia\bin\julia -e "include(Pkg.dir(\"Plots\", \"test\", \"travis_commands.jl\"))"
|
|
||||||
|
|||||||
@ -116,7 +116,7 @@ ignorenan_minimum(x) = Base.minimum(x)
|
|||||||
ignorenan_maximum(x::AbstractArray{F}) where {F<:AbstractFloat} = NaNMath.maximum(x)
|
ignorenan_maximum(x::AbstractArray{F}) where {F<:AbstractFloat} = NaNMath.maximum(x)
|
||||||
ignorenan_maximum(x) = Base.maximum(x)
|
ignorenan_maximum(x) = Base.maximum(x)
|
||||||
ignorenan_mean(x::AbstractArray{F}) where {F<:AbstractFloat} = NaNMath.mean(x)
|
ignorenan_mean(x::AbstractArray{F}) where {F<:AbstractFloat} = NaNMath.mean(x)
|
||||||
ignorenan_mean(x) = Base.mean(x)
|
ignorenan_mean(x) = Statistics.mean(x)
|
||||||
ignorenan_extrema(x::AbstractArray{F}) where {F<:AbstractFloat} = NaNMath.extrema(x)
|
ignorenan_extrema(x::AbstractArray{F}) where {F<:AbstractFloat} = NaNMath.extrema(x)
|
||||||
ignorenan_extrema(x) = Base.extrema(x)
|
ignorenan_extrema(x) = Base.extrema(x)
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,7 @@ StatPlots
|
|||||||
Images
|
Images
|
||||||
ImageMagick
|
ImageMagick
|
||||||
@osx QuartzImageIO
|
@osx QuartzImageIO
|
||||||
|
FileIO
|
||||||
GR 0.31.0
|
GR 0.31.0
|
||||||
RDatasets
|
RDatasets
|
||||||
VisualRegressionTests
|
VisualRegressionTests
|
||||||
|
|||||||
24
test/add_packages.jl
Normal file
24
test/add_packages.jl
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
using Pkg
|
||||||
|
|
||||||
|
# need this to use Conda
|
||||||
|
# ENV["PYTHON"] = ""
|
||||||
|
|
||||||
|
Pkg.add([
|
||||||
|
PackageSpec(url="https://github.com/JuliaPlots/PlotReferenceImages.jl.git"),
|
||||||
|
# PackageSpec(url="https://github.com/JuliaStats/KernelDensity.jl.git"),
|
||||||
|
PackageSpec(name="PlotUtils", rev="master"),
|
||||||
|
PackageSpec(name="RecipesBase", rev="master"),
|
||||||
|
# PackageSpec(name="Blink", rev="master"),
|
||||||
|
# PackageSpec(name="Rsvg", rev="master"),
|
||||||
|
# PackageSpec(name="PlotlyJS", rev="master"),
|
||||||
|
# PackageSpec(name="VisualRegressionTests", rev="master"),
|
||||||
|
# PackageSpec("PyPlot"),
|
||||||
|
# PackageSpec("InspectDR"),
|
||||||
|
])
|
||||||
|
|
||||||
|
Pkg.build("ImageMagick")
|
||||||
|
# Pkg.build("GR")
|
||||||
|
# Pkg.build("Blink")
|
||||||
|
# import Blink
|
||||||
|
# Blink.AtomShell.install()
|
||||||
|
# Pkg.build("PyPlot")
|
||||||
@ -2,6 +2,10 @@
|
|||||||
using VisualRegressionTests
|
using VisualRegressionTests
|
||||||
# using ExamplePlots
|
# using ExamplePlots
|
||||||
|
|
||||||
|
if isinteractive()
|
||||||
|
@eval Main import Gtk
|
||||||
|
end
|
||||||
|
|
||||||
# import DataFrames, RDatasets
|
# import DataFrames, RDatasets
|
||||||
|
|
||||||
# don't let pyplot use a gui... it'll crash
|
# don't let pyplot use a gui... it'll crash
|
||||||
@ -15,6 +19,8 @@ using VisualRegressionTests
|
|||||||
|
|
||||||
using Plots
|
using Plots
|
||||||
# using StatPlots
|
# using StatPlots
|
||||||
|
import PlotReferenceImages
|
||||||
|
using Random
|
||||||
using Test
|
using Test
|
||||||
|
|
||||||
default(size=(500,300))
|
default(size=(500,300))
|
||||||
@ -38,7 +44,7 @@ function image_comparison_tests(pkg::Symbol, idx::Int; debug = false, popup = is
|
|||||||
|
|
||||||
# reference image directory setup
|
# reference image directory setup
|
||||||
# refdir = joinpath(Pkg.dir("ExamplePlots"), "test", "refimg", string(pkg))
|
# 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"
|
fn = "ref$idx.png"
|
||||||
|
|
||||||
# firgure out version info
|
# firgure out version info
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
module PlotsTests
|
module PlotsTests
|
||||||
|
|
||||||
|
include("add_packages.jl")
|
||||||
include("imgcomp.jl")
|
include("imgcomp.jl")
|
||||||
|
|
||||||
# don't actually show the plots
|
# don't actually show the plots
|
||||||
|
|||||||
@ -1,34 +0,0 @@
|
|||||||
using Pkg
|
|
||||||
|
|
||||||
Pkg.add("ImageMagick")
|
|
||||||
Pkg.build("ImageMagick")
|
|
||||||
|
|
||||||
# Pkg.clone("GR")
|
|
||||||
# Pkg.build("GR")
|
|
||||||
|
|
||||||
Pkg.checkout("https://github.com/JuliaPlots/PlotReferenceImages.jl.git")
|
|
||||||
|
|
||||||
# Pkg.clone("https://github.com/JuliaStats/KernelDensity.jl.git")
|
|
||||||
|
|
||||||
# Pkg.add("StatPlots")
|
|
||||||
Pkg.checkout("PlotUtils")
|
|
||||||
Pkg.checkout("RecipesBase")
|
|
||||||
|
|
||||||
# Pkg.clone("Blink")
|
|
||||||
# Pkg.build("Blink")
|
|
||||||
# import Blink
|
|
||||||
# Blink.AtomShell.install()
|
|
||||||
# Pkg.add("Rsvg")
|
|
||||||
# Pkg.add("PlotlyJS")
|
|
||||||
|
|
||||||
# Pkg.checkout("RecipesBase")
|
|
||||||
# Pkg.clone("VisualRegressionTests")
|
|
||||||
|
|
||||||
# need this to use Conda
|
|
||||||
# ENV["PYTHON"] = ""
|
|
||||||
# Pkg.add("PyPlot")
|
|
||||||
# Pkg.build("PyPlot")
|
|
||||||
|
|
||||||
# Pkg.add("InspectDR")
|
|
||||||
|
|
||||||
Pkg.test("Plots"; coverage=false)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user