Full-Stack Web Development with Vue.js and Node

(singke) #1
Going Live Chapter 10

Managing the dependencies

The next part is to install the dependencies. By default, no dependencies are added by
Travis CI. The following command tells Travis CI to download the dependencies before


building the script. It uses npm to install the dependencies, so let's add a script to install


such dependencies:


language: node_js
node_js:


  • "10.0.0"
    before_script:

  • npm install
    script: npm run unit


That's it. We have successfully configured Travis CI for our application.


Now, let's commit and push this file to GitHub. When you do, check the branches on


travis.org to view all the builds:


Here, the master is the branch where we added the Travis CI build and the build is passing.
You can view the details for for master branch by clicking on the build.

Free download pdf