Merge pull request #1586 from daschw/julia0.7

use Pkg in travis commands
This commit is contained in:
Daniel Schwabeneder 2018-07-02 00:19:54 +02:00 committed by GitHub
commit 345bb5d1aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 13 deletions

View File

@ -44,7 +44,7 @@ notifications:
# 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 'Pkg.clone(pwd()); Pkg.build("Plots")' - julia -e 'using Pkg; Pkg.add(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")'

View File

@ -6,3 +6,4 @@ GR 0.31.0
RDatasets RDatasets
VisualRegressionTests VisualRegressionTests
UnicodePlots UnicodePlots
Test

View File

@ -6,16 +6,16 @@ import DataFrames, RDatasets
# don't let pyplot use a gui... it'll crash # don't let pyplot use a gui... it'll crash
# note: Agg will set gui -> :none in PyPlot # note: Agg will set gui -> :none in PyPlot
ENV["MPLBACKEND"] = "Agg" # ENV["MPLBACKEND"] = "Agg"
try # try
@eval import PyPlot # @eval import PyPlot
info("Matplotlib version: $(PyPlot.matplotlib[:__version__])") # info("Matplotlib version: $(PyPlot.matplotlib[:__version__])")
end # end
using Plots using Plots
using StatPlots using StatPlots
using Base.Test using Test
default(size=(500,300)) default(size=(500,300))

View File

@ -1,15 +1,18 @@
using Pkg
Pkg.add("ImageMagick") Pkg.add("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.add("https://github.com/JuliaPlots/PlotReferenceImages.jl.git")
# Pkg.clone("https://github.com/JuliaStats/KernelDensity.jl.git") # Pkg.clone("https://github.com/JuliaStats/KernelDensity.jl.git")
Pkg.clone("StatPlots") Pkg.add("StatPlots")
# Pkg.checkout("PlotUtils") Pkg.checkout("PlotUtils")
Pkg.checkout("RecipesBase")
# Pkg.clone("Blink") # Pkg.clone("Blink")
# Pkg.build("Blink") # Pkg.build("Blink")
@ -22,9 +25,9 @@ Pkg.clone("StatPlots")
# Pkg.clone("VisualRegressionTests") # Pkg.clone("VisualRegressionTests")
# need this to use Conda # need this to use Conda
ENV["PYTHON"] = "" # ENV["PYTHON"] = ""
Pkg.add("PyPlot") # Pkg.add("PyPlot")
Pkg.build("PyPlot") # Pkg.build("PyPlot")
# Pkg.add("InspectDR") # Pkg.add("InspectDR")