Book Image

Hands-On Continuous Integration and Delivery

By : Jean-Marcel Belmont
Book Image

Hands-On Continuous Integration and Delivery

By: Jean-Marcel Belmont

Overview of this book

Hands-On Continuous Integration and Delivery starts with the fundamentals of continuous integration (CI) and continuous delivery (CD) and where it fits in the DevOps ecosystem. You will explore the importance of stakeholder collaboration as part of CI/CD. As you make your way through the chapters, you will get to grips with Jenkins UI, and learn to install Jenkins on different platforms, add plugins, and write freestyle scripts. Next, you will gain hands-on experience of developing plugins with Jenkins UI, building the Jenkins 2.0 pipeline, and performing Docker integration. In the concluding chapters, you will install Travis CI and Circle CI and carry out scripting, logging, and debugging, helping you to acquire a broad knowledge of CI/CD with Travis CI and CircleCI. By the end of this book, you will have a detailed understanding of best practices for CI/CD systems and be able to implement them with confidence.
Table of Contents (18 chapters)

Chapter 10: Travis CI CLI Commands and Automation

  1. The Travis CLI User Documentation (https://github.com/travis-ci/travis.rb#windows) recommends that you use the RubyInstaller (https://rubyinstaller.org/) to install the latest version Ruby on the Windows OS.
  2. You should use the travis version command.
  3. You use the travis help command. For example to print out information about the token command you run the following command: travis help token.
  4. You will need to run the travis login command and then enter your GitHub username and password.
  5. You will need to pass the following HTTP Header: Travis-API-Version: 3.
  6. The travis report command prints out system configuration information.
  7. The travis lint command will check the syntax and validity of your Travis yml script.
  8. The travis init command helps you setup Travis in your project, and for example to setup go in your project run the following...