diff --git a/.travis.yml b/.travis.yml index f0b8ab8..da63ef7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,13 +8,10 @@ julia: - nightly notifications: email: false -matrix: - allow_failures: - - julia: nightly script: - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi - julia -e 'Pkg.clone(pwd())' - - julia -e 'Pkg.test("Interact"; coverage=true)' + - julia -e 'cov=(VERSION < v"0.5-" || !is_apple() || VERSION >= v"0.6-"); Pkg.test("Interact"; coverage=cov)' after_success: - julia --color=yes -e 'cd(Pkg.dir("Interact")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())' diff --git a/src/IJulia/setup.jl b/src/IJulia/setup.jl index 1da5bf0..fe1361e 100644 --- a/src/IJulia/setup.jl +++ b/src/IJulia/setup.jl @@ -78,7 +78,7 @@ function init_comm(x::Signal) get_data_dict(value, mimes))) end end - preserve(map(notify, x)) + preserve(map(notify, x; name="$(x.name) printer (Interact)")) else comm = comms[x] end diff --git a/test/ijulia.jl b/test/ijulia.jl index abac62a..cb101e6 100644 --- a/test/ijulia.jl +++ b/test/ijulia.jl @@ -22,7 +22,7 @@ sliderWidget = slider(1:5) # Julia v0.6 uses spaces after commas when printing types, but # previous versions did not. To ensure that this test works on all # versions, we just remove spaces from both sides of the comparison. - @test removespaces("""Interact.Slider{Int64}(Signal{Int64}(3, nactions=1),\"\",3,1:5,\"horizontal\",true,\"d\",true)""") == removespaces(stringmime("text/plain", sliderWidget)) + @test removespaces("""Interact.Slider{Int64}($(string(signal(sliderWidget))),\"\",3,1:5,\"horizontal\",true,\"d\",true)""") == removespaces(stringmime("text/plain", sliderWidget)) @test "3" == stringmime("text/plain", signal(sliderWidget)) @test "" == stringmime("text/html", sliderWidget)