Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -1,14 +1,22 @@
Loading
1 1
using Pkg, SHA
2 2
using Base: UUID
3 3
4 -
current_package_name = ARGS[1]
4 +
current_package_name = Symbol(ARGS[1])
5 5
current_package_version = VersionNumber(ARGS[2])
6 -
current_package_treehash = ARGS[3]
6 +
current_package_uuid = UUID(ARGS[3])
7 +
current_package_treehash = ARGS[4]
8 +
9 +
@info "Indexing package $current_package_name $current_package_version..."
10 +
11 +
current_package_versionwithoutplus = replace(string(current_package_version), '+'=>'_')
12 +
cache_package_folder_path = joinpath(store_path, "v1", "packages", "$(current_package_name)_$current_package_uuid")
13 +
cache_path = joinpath(cache_package_folder_path, "v$(current_package_versionwithoutplus)_$current_package_treehash.jstore")
14 +
15 +
mkpath(cache_package_folder_path)
7 16
8 17
module LoadingBay end
9 18
Pkg.add(name=current_package_name, version=current_package_version)
10 19
11 -
12 20
# TODO Make the code below ONLY write a cache file for the package we just added here.
13 21
include("faketypes.jl")
14 22
include("symbols.jl")
@@ -17,28 +25,29 @@
Loading
17 25
using .CacheStore
18 26
19 27
# This path will always be mounted in the docker container in which we are running
20 -
store_path = "/tmp/symcache"
28 +
store_path = "/symcache"
21 29
22 30
# Load package
23 31
m = try
24 -
    LoadingBay.eval(:(import $(Symbol(current_package_name))))
25 -
    getfield(LoadingBay, Symbol(current_package_name))
32 +
    LoadingBay.eval(:(import $current_package_name))
33 +
    getfield(LoadingBay, current_package_name)
26 34
catch e
35 +
    @info "Could not load package, exiting."
27 36
    exit(-10)
28 37
end
29 38
30 39
# Get the symbols
31 -
env = getenvtree([Symbol(current_package_name)])
40 +
env = getenvtree([current_package_name])
32 41
symbols(env, m)
33 42
34 -
# Write them to a file
35 -
ctx = Pkg.Types.Context()
36 -
uuid = packageuuid(ctx, current_package_name)
37 -
modify_dirs(env[Symbol(current_package_name)], f -> modify_dir(f, pkg_src_dir(Base.loaded_modules[Base.PkgId(uuid, current_package_name)]), "PLACEHOLDER")) # Strip out paths
43 +
 # Strip out paths
44 +
modify_dirs(env[current_package_name], f -> modify_dir(f, pkg_src_dir(Base.loaded_modules[Base.PkgId(current_package_uuid, string(current_package_name))]), "PLACEHOLDER"))
45 +
38 46
# There's an issue here - @enum used within CSTParser seems to add a method that is introduced from Enums.jl...
39 -
mkpath(joinpath(store_path, "v1", "packages", "$(current_package_name)_$uuid"))
40 -
versionwithoutplus = replace(string(current_package_version), '+'=>'_')
41 -
cache_path = joinpath(store_path, "v1", "packages", "$(current_package_name)_$uuid", "v$(versionwithoutplus)_$current_package_treehash.jstore")
47 +
48 +
# Write them to a file
42 49
open(cache_path, "w") do io
43 -
    CacheStore.write(io, Package(current_package_name, env[Symbol(current_package_name)], uuid, nothing))
50 +
    CacheStore.write(io, Package(current_package_name, env[current_package_name], current_package_uuid, nothing))
44 51
end
52 +
53 +
@info "Finished indexing."
Files Coverage
src 71.31%
Project Totals (7 files) 71.31%
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests
codecov-umbrella
Build #483997812 -
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading