Skip to content

Commit

Permalink
fix version checks in test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Evizero committed May 21, 2017
1 parent 81b7821 commit d863951
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ notifications:
# uncomment the following lines to override the default test script
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone(pwd()); Pkg.build("Augmentor"); Pkg.test("Augmentor"; coverage=VERSION >= v"0.6.0-alpha")'
- julia -e 'Pkg.clone(pwd()); Pkg.build("Augmentor"); Pkg.test("Augmentor"; coverage=VERSION >= v"0.6.0-pre.alpha")'
after_success:
# push coverage results to Coveralls
- julia -e 'if VERSION >= v"0.6.0-alpha" cd(Pkg.dir("Augmentor")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder()); end'
- julia -e 'if VERSION >= v"0.6.0-pre.alpha" cd(Pkg.dir("Augmentor")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder()); end'
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ using Augmentor
ambs = detect_ambiguities(Augmentor, ImageTransformations, Base, Core)
if VERSION < v"0.6.0-" # good enough. the 10 on 0.5 are spurious
@test length(setdiff(ambs, refambs)) <= 10
else
elseif VERSION > v"0.6.0-rc1"
@test length(setdiff(ambs, refambs)) == 0
else
info("test for ambiguities skipped because of untested julia version")
end

function str_show(obj)
Expand Down

3 comments on commit d863951

@Evizero
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about this? @tkelman

@tkelman
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@Evizero
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll overwrite the v0.0.1 tag again then

Please sign in to comment.