mirror of
https://gitlab.com/MisterBiggs/stl-process.git
synced 2025-08-03 12:01:33 +00:00
more coverage stuff
This commit is contained in:
@@ -13,6 +13,10 @@
|
|||||||
# [1]: http://julialang.org/
|
# [1]: http://julialang.org/
|
||||||
# [2]: https://docs.julialang.org/en/v1/manual/documentation/index.html
|
# [2]: https://docs.julialang.org/en/v1/manual/documentation/index.html
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- post
|
||||||
|
|
||||||
# Below is the template to run your tests in Julia
|
# Below is the template to run your tests in Julia
|
||||||
.test_template: &test_definition
|
.test_template: &test_definition
|
||||||
# Uncomment below (and adjust as needed) to run the tests for specific references
|
# Uncomment below (and adjust as needed) to run the tests for specific references
|
||||||
@@ -35,6 +39,20 @@
|
|||||||
- ./*/*/*.cov
|
- ./*/*/*.cov
|
||||||
- ./*/*/*/*.cov
|
- ./*/*/*/*.cov
|
||||||
|
|
||||||
|
.coverage:
|
||||||
|
stage: post
|
||||||
|
script: |
|
||||||
|
# Coverage(Tools).jl scans all .jl files but easily fails at that,
|
||||||
|
# so make sure we exclude hidden directories (like the depot, .git, ...)
|
||||||
|
julia -e '
|
||||||
|
using Pkg
|
||||||
|
Pkg.add("Coverage")
|
||||||
|
using Coverage
|
||||||
|
dirs = filter(entry -> isdir(entry) && !startswith(entry, "."), readdir())
|
||||||
|
coverage = vcat(map(process_folder, dirs)...)
|
||||||
|
Codecov.submit_local(coverage)'
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
# Name a test and select an appropriate image.
|
# Name a test and select an appropriate image.
|
||||||
# images comes from Docker hub
|
# images comes from Docker hub
|
||||||
test:1.7:
|
test:1.7:
|
||||||
|
Reference in New Issue
Block a user