Use cache.julialang.org to store ML models

It's annoying that when third party servers go down our tests break.
Let's at least make sure that if our tests break due to server outages
it's our fault.
This commit is contained in:
Elliot Saba 2018-03-02 10:27:16 -08:00
parent 3babeeb440
commit 19f691d342
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ function load()
isdir(deps("cmudict")) && return isdir(deps("cmudict")) && return
mkpath(deps("cmudict")) mkpath(deps("cmudict"))
for x in ["", ".phones", ".symbols"] for x in ["", ".phones", ".symbols"]
download("http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict-$version$x", download("https://cache.julialang.org/http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict-$version$x",
deps("cmudict", "cmudict$x")) deps("cmudict", "cmudict$x"))
end end
end end

View File

@ -14,7 +14,7 @@ function load()
"t10k-images-idx3-ubyte", "t10k-images-idx3-ubyte",
"t10k-labels-idx1-ubyte"] "t10k-labels-idx1-ubyte"]
isfile(file) && continue isfile(file) && continue
download("http://yann.lecun.com/exdb/mnist/$file.gz", "$file.gz") download("https://cache.julialang.org/http://yann.lecun.com/exdb/mnist/$file.gz", "$file.gz")
open(file, "w") do io open(file, "w") do io
write(io, GZip.open(read, "$file.gz")) write(io, GZip.open(read, "$file.gz"))
end end

View File

@ -5,7 +5,7 @@ using ..Data: deps
function load() function load()
isfile(deps("sentiment.zip")) || isfile(deps("sentiment.zip")) ||
download("https://nlp.stanford.edu/sentiment/trainDevTestTrees_PTB.zip", download("https://cache.julialang.org/https://nlp.stanford.edu/sentiment/trainDevTestTrees_PTB.zip",
deps("sentiment.zip")) deps("sentiment.zip"))
return return
end end