Skip to content

Instantly share code, notes, and snippets.

@timhughes
Last active November 14, 2016 06:22
Show Gist options
  • Save timhughes/77a72cb5a2fc52425e9c to your computer and use it in GitHub Desktop.
Save timhughes/77a72cb5a2fc52425e9c to your computer and use it in GitHub Desktop.
Bash continuous integration for Golang on Linux
#! /bin/sh
#
# ci.sh
# Copyright (C) 2014 Tim Hughes <[email protected]>
#
# Distributed under terms of the MIT license.
#
while true
do
$* # run our command
sleep 1 # This lets go test clean up some temp files
inotifywait -e modify --recursive . 2>/dev/null
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment