lint - a Travis YML script

The lint command is very useful as it checks that you have the proper syntax in your Travis YML script. Let use create a Travis YML script in the functional-patterns repository (https://github.com/packtci/functional-patterns) that we just added to GitHub. We will add the following entry for the .travis.yml script:

language: blahnode_js: 8.11

Let us now run the lint command to check the syntax. In the following screenshot, Travis informs us that we are using an illegal value of blah and that it will default to ruby as the language:

Let us fix the language entry to use Node.js and then run the lint command again: ...

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.