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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.