Skip to content

Commit

Permalink
more travis silliness
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeits committed Jun 20, 2018
1 parent d33e991 commit 7c18f79
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions examples/manipulation_with_blink.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
# For a similar demo rendered in Jupyter instead, see the
# `interactive_manipulation.ipynb` notebook.

# Don't open windows when we're running this test
# on the Travis CI build servers
if haskey(ENV, "CI")
options = Dict{Symbol, Any}(:show => false)
else
options = Dict{Symbol, Any}()
end

# Import our packages
using MeshCatMechanisms
using RigidBodyDynamics
Expand All @@ -29,9 +21,20 @@ mechanism = rand_chain_mechanism(Float64,
mvis = MechanismVisualizer(mechanism, Skeleton(randomize_colors=true))

# Open the visualizer in a new window
open(mvis, Window(options))
#
# We don't open windows when we're running this test
# on the Travis CI build servers
if !haskey(ENV, "CI")
open(mvis, Window())
end

# Create sliders to manipulate the visualizer's configuration
widget = manipulate!(mvis)

# Render those sliders in a new window
body!(Window(options), widget)
#
# We don't open windows when we're running this test
# on the Travis CI build servers
if !haskey(ENV, "CI")
body!(Window(), widget)
end

0 comments on commit 7c18f79

Please sign in to comment.