Skip to content

Commit aeed49f

Browse files
committed
debug CI failure
1 parent a9b9972 commit aeed49f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ julia:
77
- nightly
88
notifications:
99
email: false
10+
script:
11+
- julia -e 'include("debug.jl")'

debug.jl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import Pkg
2+
ctx = Pkg.Types.Context()
3+
@show ctx.env.project_file
4+
5+
project_file = ctx.env.project_file
6+
project = Pkg.Types.read_project(project_file)
7+
@show project
8+
@show k = any(haskey.((project,), ["name", "uuid", "version"]))
9+
project_package = nothing
10+
if k
11+
project_package = Pkg.Types.PackageSpec(
12+
get(project, "name", ""),
13+
UUID(get(project, "uuid", 0)),
14+
VersionNumber(get(project, "version", "0.0")),
15+
)
16+
end
17+
18+
@show project_package
19+
20+
21+
@show ctx.env.pkg.name
22+
@show ctx.env.pkg.uuid
23+
24+
pkg = Pkg.Types.PackageSpec("Compat")
25+
@show Pkg.Types.is_project_name(ctx.env, pkg.name)
26+
pkgs = [pkg]
27+
Pkg.Types.project_resolve!(ctx.env, pkgs)
28+
@show pkg.uuid
29+
@show Pkg.Types.ensure_resolved(ctx.env, pkgs)
30+
Pkg.build("Compat")

0 commit comments

Comments
 (0)