-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix cd path when registering a new package (fix #43) #58
Changes from 7 commits
e4f5988
52616c8
dd05320
922165d
792074a
d5cc42d
205393f
3028b1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ end | |
|
||
temp_pkg_dir() do pkgdir | ||
|
||
#= | ||
@testset "testing a package with test dependencies causes them to be installed for the duration of the test" begin | ||
PkgDev.generate("PackageWithTestDependencies", "MIT", config=Dict("user.name"=>"Julia Test", "user.email"=>"test@julialang.org")) | ||
@test [keys(Pkg.installed())...] == ["PackageWithTestDependencies"] | ||
|
@@ -158,6 +159,19 @@ end""" | |
f = PkgDev.freeable(io) | ||
@test any(f .== "Example") || contains(takebuf_string(io), "Example") | ||
end | ||
=# | ||
|
||
@testset "testing package registration" begin | ||
if haskey(ENV, "CI") && lowercase(ENV["CI"]) == "true" | ||
info("setting git global configuration") | ||
run(`git config --global user.name "Julia Test"`) | ||
run(`git config --global user.email test@julialang.org`) | ||
run(`git config --global github.user JuliaTest`) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe a better approach would be to create a temporary directory, and do edit: or set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
end | ||
PkgDev.generate("GreatNewPackage", "MIT") | ||
PkgDev.register("GreatNewPackage") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this will need git credentials of some kind |
||
@test !isempty(readstring(joinpath(pkgdir, "METADATA", "GreatNewPackage", "url"))) | ||
end | ||
end | ||
|
||
@testset "Testing package utils" begin | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be removed before merging, yeah?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.