Skip to content

Commit

Permalink
fix coverage upload
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychen94 committed Feb 12, 2020
1 parent b4e7b08 commit 73a2f1b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
# Until https://github.com/julia-actions/julia-uploadcodecov/issues/1 get fixed
# submit coverage report via travis
language: julia
os:
- linux
julia:
- 1.0
julia: 1.0
os: linux
notifications:
email: false

# use default julia script for test
# script:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia --check-bounds=yes --color=yes -e 'import Pkg; Pkg.clone(pwd()); Pkg.build("ImageCore"); Pkg.test("ImageCore"; coverage=true)';

# control of actual deployment is in the Documenter make script
jobs:
include:
- stage: deploy
julia: 1.0
os: linux
script:
# - julia -e 'import Pkg; Pkg.clone(pwd()); Pkg.build("ImageCore")'
- julia -e 'import Pkg; Pkg.add("Documenter")'
- julia -e 'import ImageCore; ENV["DOCUMENTER_DEBUG"] = "true"; include(joinpath("docs","make.jl"))'
- stage: Coverage
codecov: true

after_success:
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
- stage: Documentation
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![][action-img]][action-url]
[![][pkgeval-img]][pkgeval-url]
[![][codecov-img]][codecov-url]
[![][docs-stable-img]][docs-stable-url]
[![][docs-dev-img]][docs-dev-url]

Expand All @@ -15,6 +16,8 @@ designed to support image processing and computer vision.
[pkgeval-url]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html
[action-img]: https://github.com/JuliaImages/ImageCore.jl/workflows/Unit%20test/badge.svg
[action-url]: https://github.com/JuliaImages/ImageCore.jl/actions
[codecov-img]: https://codecov.io/github/JuliaImages/ImageCore.jl/coverage.svg?branch=master
[codecov-url]: https://codecov.io/github/JuliaImages/ImageCore.jl?branch=master
[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg
[docs-stable-url]: https://JuliaImages.github.io/ImageCore.jl/stable
[docs-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg
Expand Down

0 comments on commit 73a2f1b

Please sign in to comment.