August 2018
Intermediate to advanced
416 pages
12h 37m
English
In the Travis YML script here, we have set a number of different actions in the Travis CI build. First, we set the language to node_js, then we set the version of node_js to 8.11, then we set a new property called dist: trusty which set the Travis CI environment to Ubuntu 14.04, which is called Trusty. We then use the add-ons block to add the latest stable Chrome version. We then get the stable version of Google Chrome running on the CI build on port 9222, and then we use the cache block so that node_modules is cached on each CI build run. Then we install our Node.js dependencies and finally we run the Node.js tests using the Jest library:
language: node_js ...
Read now
Unlock full access