CircleCI configuration overview
CircleCI uses YAML (http://yaml.org/spec/1.2/spec.html), which is a data serialization language, for its configuration language, as does Travis CI.
Concept overview of CircleCI configuration
We will discuss many more concepts and configuration options in CircleCI in later chapters but, as an overview, let us look at a basic config.yml
file and explain some of its concepts. We will create a new repository in GitHub with our packtci
(https://github.com/packtci) Github user. You can find the new repository at https://github.com/packtci/go-template-example-with-circle-ci. We will also create a function in Golang that parses a template. We will then write a test case that parses the template text and then create a CircleCI config.yml
file. We will push these code changes up to GitHub and then finally set up this new project with CircleCI.
Adding source files to the new repository
In the new repository, we added a file called template.go
and here is the function we...