Over a million developers have joined DZone.
Gold Partner

Using 'watch' as Quick Continuous Integration

· Java Zone

The Java Zone is brought to you in partnership with Sonatype.  Learn how Nexus OSS provides secure, private repositories that support Docker images and many other components used across DevOps and Continuous tool chains, including Java, RubyGems, npm, and NuGet components.

Here’s a quick tip for anyone writing a script without a REPL: use watch as a quick continuous integration tool.

While writing code in one console, execute the following watch command in another:

watch -d -n 5 "command"

I used this trick while pair-programming an Io implementation of Gnome Sort during my last reading group meeting. My other half thought it was a clever trick and shared it with the group. Then our group leader said I should blog about it. Done!

The Java Zone is brought to you in partnership with Sonatype.  Learn how Nexus OSS provides secure, private repositories that support Docker images and many other components used across DevOps and Continuous tool chains, including Java, RubyGems, npm, and NuGet components.

Topics:

Published at DZone with permission of Mike Christianson , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}