Browse Source

Simplify code coverage submission. (#38)

pull/40/head
Fredrik Ekre 7 years ago committed by GitHub
parent
commit
7eae919248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .travis.yml
  2. 0
      codecov.yml
  3. 5
      test/coverage/coverage.jl

6
.travis.yml

@ -14,8 +14,10 @@ branches: @@ -14,8 +14,10 @@ branches:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
after_success:
- julia --project=test/coverage -e 'using Pkg; Pkg.instantiate()'
- julia --project=test/coverage test/coverage/coverage.jl
- if [[ $TRAVIS_JULIA_VERSION = 1.0 ]] && [[ $TRAVIS_OS_NAME = linux ]]; then
julia --project=test/coverage -e 'using Pkg; Pkg.instantiate();
using Coverage; Codecov.submit(Codecov.process_folder())';
fi
jobs:
include:
- stage: Documentation

0
.codecov.yml → codecov.yml

5
test/coverage/coverage.jl

@ -3,7 +3,4 @@ get(ENV, "TRAVIS_OS_NAME", nothing) == "linux" || exit(0) @@ -3,7 +3,4 @@ get(ENV, "TRAVIS_OS_NAME", nothing) == "linux" || exit(0)
get(ENV, "TRAVIS_JULIA_VERSION", nothing) == "1.0" || exit(0)
using Coverage
cd(joinpath(@__DIR__, "..", "..")) do
Codecov.submit(Codecov.process_folder())
end
Codecov.submit(Codecov.process_folder())

Loading…
Cancel
Save