Skip to content

Commit

Permalink
gone Pkg.dir()
Browse files Browse the repository at this point in the history
  • Loading branch information
henryk-modzelewski committed Oct 17, 2018
1 parent 7f09b16 commit edfbab7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 11,6 @@ notifications:

after_success:
# push coverage results to Coveralls
- julia -e 'cd(Pkg.dir("SeisIO")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
- julia -e 'using SeisIO; cd(dirname(dirname(pathof(SeisIO)))); using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia -e 'cd(Pkg.dir("SeisIO")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
- julia -e 'using SeisIO; cd(dirname(dirname(pathof(SeisIO)))); using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
2 changes: 1 addition & 1 deletion test/test_SeisCon.jl
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@
@testset "SeisCon" begin

s = segy_scan(Pkg.dir("SeisIO")*"/src/data/", "overthrust", ["GroupX"; "GroupY"], verbosity = 0)
s = segy_scan(joinpath(dirname(pathof(SeisIO)),"data/"), "overthrust", ["GroupX"; "GroupY"], verbosity = 0)
@testset "Constructor" begin
@test typeof(s) == SeisCon
@test length(s) == 97
Expand Down
2 changes: 1 addition & 1 deletion test/test_read.jl
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@
# Test reading component of SeisIO

s = IOBuffer(read(Pkg.dir("SeisIO")*"/src/data/overthrust_2D_shot_1_20.segy"))
s = IOBuffer(read(joinpath(dirname(pathof(SeisIO)),"data/overthrust_2D_shot_1_20.segy")))

@testset "read" begin

Expand Down

0 comments on commit edfbab7

Please sign in to comment.