The init command will help you set up Travis CI in a project by generating a .travis.yml script for you. We have set up a new project in GitHub called travis-init-command (https://github.com/packtci/travis-init-command). We will use the init command to set up Golang in this repository:
The steps in the process are as follows:
- The first step is to use the sync command so that Travis CI is aware of this new repository
- Next we will enable this new repository in Travis CI
- Next we will try to create a .travis.yml script with Golang, but notice that it is not recognized, so we try again with Go and it succeeds ...