diff --git a/.travis.yml b/.travis.yml
index 4ca4c6fa..fdaf9c1e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,8 @@ os:
- linux
- osx
julia:
- # - release
+ - 0.4
+ - 0.5
- nightly
# matrix:
# allow_failures:
diff --git a/src/backends/gadfly.jl b/src/backends/gadfly.jl
index d5c48ee7..29710fa8 100644
--- a/src/backends/gadfly.jl
+++ b/src/backends/gadfly.jl
@@ -41,7 +41,7 @@ function _initialize_backend(::GadflyBackend; kw...)
@eval begin
import Gadfly, Compose
export Gadfly, Compose
- include(joinpath(Pkg.dir("Plots"), "src", "backends", "gadfly_shapes.jl"))
+ include(joinpath(dirname(@__FILE__), "gadfly_shapes.jl"))
end
end
diff --git a/src/backends/immerse.jl b/src/backends/immerse.jl
index 8a025ba9..2a00111e 100644
--- a/src/backends/immerse.jl
+++ b/src/backends/immerse.jl
@@ -14,7 +14,7 @@ function _initialize_backend(::ImmerseBackend; kw...)
@eval begin
import Immerse, Gadfly, Compose, Gtk
export Immerse, Gadfly, Compose, Gtk
- include(joinpath(Pkg.dir("Plots"), "src", "backends", "gadfly_shapes.jl"))
+ include(joinpath(dirname(@__FILE__), "gadfly_shapes.jl"))
end
end
diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl
index 5d11e288..347e972c 100644
--- a/src/backends/plotly.jl
+++ b/src/backends/plotly.jl
@@ -537,7 +537,7 @@ end
# ----------------------------------------------------------------
function html_head(plt::Plot{PlotlyBackend})
- ""
+ ""
end
function html_body(plt::Plot{PlotlyBackend}, style = nothing)
diff --git a/test/snoop.jl b/test/snoop.jl
index 82a8f741..cf137d63 100644
--- a/test/snoop.jl
+++ b/test/snoop.jl
@@ -4,7 +4,7 @@ import SnoopCompile
# This only needs to be run once (to generate "/tmp/plots_compiles.csv")
# SnoopCompile.@snoop "/tmp/plots_compiles.csv" begin
-# include(Pkg.dir("Plots", "test","runtests.jl"))
+# include(joinpath(dirname(@__FILE__), "runtests.jl"))
# end
# ----------------------------------------------------------
@@ -32,5 +32,5 @@ blacklist = ["MIME"]
pc, discards = SnoopCompile.parcel(data[end:-1:1,2], subst=subst, blacklist=blacklist)
SnoopCompile.write("/tmp/precompile", pc)
-pdir = Pkg.dir("Plots")
+pdir = joinpath(dirname(@__FILE__), "..")
run(`cp /tmp/precompile/precompile_Plots.jl $pdir/src/precompile.jl`)