Travis CI YML script contents

We will first create a file called .travis.yml at the root of the repository and then copy the following contents into this file:

language: node_jsnode_js:    - "6.14.1"install:    - npm installscript: npm test

We will go into much more detail about each entry of this YML script but essentially what we are saying to Travis CI is that this a Node.js project and we want to Travis CI to use node version 6.14.1 in the CI build, then install all the dependencies required for the project using the npm package manager and then finally to run all of the tests using the npm test script command. I will commit this change into the functional-summer repository and then we will see how to toggle on Travis CI for this project. ...

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.