Skip to content

Commit

Permalink
Add after_success_test
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jul 1, 2019
1 parent 1801025 commit 2452b98
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ matrix:
notifications:
email: false
after_success:
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'
- julia -e 'using Run; Run.after_success_test()'
jobs:
include:
- stage: Documentation
Expand Down
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ authors = ["Takafumi Arakaki <aka.tkf@gmail.com>"]
version = "0.0.1-DEV"

[deps]
Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"

Expand Down
1 change: 1 addition & 0 deletions src/Run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Run
using Pkg
using Pkg: TOML
using UUIDs: UUID
import Coverage

include("core.jl")
include("migratetest.jl")
Expand Down
6 changes: 6 additions & 0 deletions src/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,9 @@ test(path="test"; kwargs...) = runproject(
kwargs...,
)
docs(path="docs"; kwargs...) = runproject(joinpath(path, "make.jl"); kwargs...)


function after_success_test()
Coverage.Codecov.submit(Coverage.process_folder())
Coverage.Coveralls.submit(Coverage.process_folder())
end

0 comments on commit 2452b98

Please sign in to comment.