2017-08-10 17:13:01 +00:00
|
|
|
using PkgTemplates
|
|
|
|
using Base.Test
|
|
|
|
|
2017-08-14 20:58:14 +00:00
|
|
|
import PkgTemplates: badges, version_floor, substitute, read_license, gen_file, gen_readme,
|
2017-08-15 02:40:04 +00:00
|
|
|
gen_tests, gen_license, gen_require, gen_entrypoint, gen_gitignore, gen_plugin,
|
2017-10-02 03:21:35 +00:00
|
|
|
show_license, LICENSES, LICENSE_DIR, Plugin, GenericPlugin, CustomPlugin, Badge,
|
|
|
|
format, interactive, DEFAULTS_DIR
|
2017-08-14 20:58:14 +00:00
|
|
|
|
2017-08-14 18:13:26 +00:00
|
|
|
mktempdir() do temp_dir
|
|
|
|
withenv("JULIA_PKGDIR" => temp_dir) do
|
2017-12-05 20:04:17 +00:00
|
|
|
# We technically don't need to clone METADATA to run tests.
|
|
|
|
if get(ENV, "PKGTEMPLATES_TEST_FAST", "false") == "true"
|
|
|
|
mkdir(joinpath(temp_dir, "v$(version_floor())"))
|
|
|
|
else
|
|
|
|
Pkg.init()
|
|
|
|
end
|
2017-08-14 18:13:26 +00:00
|
|
|
cd(temp_dir) do
|
2017-11-14 18:20:18 +00:00
|
|
|
@testset "PkgTemplates.jl" begin
|
|
|
|
include("tests.jl")
|
|
|
|
end
|
2017-08-14 18:13:26 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|