Building your software in a nutshell

  1. Create your build using a scripting tool, such as Ant (https://ant.apache.org/), Make (https://www.gnu.org/software/make/), Maven (https://maven.apache.org/), or Rake (https://ruby.github.io/rake/)
  2. Start with a simple process in the CI build
  3. Add each process to integrate your software within the build script
  4. Run your script from the command line or an IDE

Here is an example makefile that runs a Golang API Service from my open source https://github.com/jbelmont/api-workshop:

BIN_DIR := "bin/apid" APID_MAIN := "cmd/apid/main.go"all: ensure lint test-coverensure: go get -u github.com/mattn/goveralls go get -u github.com/philwinder/gocoverage go get -u github.com/alecthomas/gometalinter go get -u github.com/golang/dep/cmd/dep ...

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.