Skip to content

Commit

Permalink
make Pkg3 test itself (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Apr 19, 2018
1 parent a8f356b commit 0a3a9ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions stdlib/Pkg3/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ branches:

script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("Pkg3"); Pkg.test("Pkg3"; coverage=true)'
- julia --check-bounds=yes -e 'using UUIDs; write("Project.toml", replace(read("Project.toml", String), r"uuid = .*?\n" =>"uuid = \"$(uuid4())\"")); import Pkg3; Pkg3.build(); Pkg3.test(; coverage=true)'

after_success:
- julia -e 'cd(Pkg.dir("Pkg3")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
- julia -e 'import Pkg3; Pkg3.add("Documenter"); include("docs/make.jl")'
- julia -e 'import Pkg3; Pkg3.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

1 change: 0 additions & 1 deletion stdlib/Pkg3/REQUIRE

This file was deleted.

4 changes: 2 additions & 2 deletions stdlib/Pkg3/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ build_script:
# Need to convert from shallow to complete for Pkg.clone to work
- IF EXIST .git\shallow (git fetch --unshallow)
- C:\projects\julia\bin\julia -e "versioninfo();
Pkg.clone(pwd(), \"Pkg3\"); Pkg.build(\"Pkg3\")"
using UUIDs; write(\"Project.toml\", replace(read(\"Project.toml\", String), r\"uuid = .*?\\n\" => \"uuid = \\\"\$(uuid4())\\\"\")); import Pkg3; Pkg3.build()"

test_script:
- C:\projects\julia\bin\julia -e "Pkg.test(\"Pkg3\")"
- C:\projects\julia\bin\julia -e "import Pkg3; Pkg3.test(; coverage=true)"

2 changes: 1 addition & 1 deletion stdlib/Pkg3/src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ end



test(;kwargs...) = test(PackageSpec[], kwargs...)
test(;kwargs...) = test(PackageSpec[]; kwargs...)
test(pkg::Union{String, PackageSpec}; kwargs...) = test([pkg]; kwargs...)
test(pkgs::Vector{String}; kwargs...) = test([PackageSpec(pkg) for pkg in pkgs]; kwargs...)
test(pkgs::Vector{PackageSpec}; kwargs...) = test(Context(), pkgs; kwargs...)
Expand Down

0 comments on commit 0a3a9ee

Please sign in to comment.