Skip more problematic tests on OSX

This commit is contained in:
Chris de Graaf 2017-10-06 14:08:35 +01:00
parent 969891c48f
commit fa1b66bb36
3 changed files with 8 additions and 3 deletions

View File

@ -2,6 +2,9 @@
# which seems to be the case in Travis CI OSX builds. # which seems to be the case in Travis CI OSX builds.
# https://travis-ci.org/invenia/PkgTemplates.jl/jobs/267682403#L115 # https://travis-ci.org/invenia/PkgTemplates.jl/jobs/267682403#L115
# https://github.com/nick-paul/TerminalMenus.jl/issues/5 # https://github.com/nick-paul/TerminalMenus.jl/issues/5
# This also affects any time we write to STDIN.buffer, because
# IOStreams do not have that attribute.
# Therefore, we skip any interactive tests on OSX builds.
@testset "Interactive template creation" begin @testset "Interactive template creation" begin
write(STDIN.buffer, "$me\n\n\r\n\n\n\n\nd") write(STDIN.buffer, "$me\n\n\r\n\n\n\n\nd")

View File

@ -1,3 +1,5 @@
# These tests are to be skipped in OSX builds, see ./interactive.jl for more info.
@testset "TravisCI" begin @testset "TravisCI" begin
write(STDIN.buffer, "\n") write(STDIN.buffer, "\n")
p = interactive(TravisCI) p = interactive(TravisCI)

View File

@ -118,12 +118,12 @@ end
if get(ENV, "TRAVIS_OS_NAME", "") != "osx" if get(ENV, "TRAVIS_OS_NAME", "") != "osx"
include(joinpath("interactive", "interactive.jl")) include(joinpath("interactive", "interactive.jl"))
@testset "Interactive plugin creation" begin
include(joinpath("interactive", "plugins.jl"))
end
else else
info("Skipping tests that require TerminalMenus") info("Skipping tests that require TerminalMenus")
end end
@testset "Interactive plugin creation" begin
include(joinpath("interactive", "plugins.jl"))
end
@testset "File generation" begin @testset "File generation" begin