Full-Stack Web Development with Vue.js and Node

(singke) #1
Going Live Chapter 10

While this is a good approach to view the builds, the best approach is to create a pull
request for each branch and see the build pass or fail in that pull request itself. So, let's


create a new pull request to see how we can make the best use of Travis CI to make our


lives easier.


Let's create a branch called setup_travis (you can name your branch anything, but make


sure it indicates a particular change so that it's easier to identify what changes that branch


can expect) with the following command:


$ git checkout -b setup_travis

Let's make a simple change to the application so that our pull request contains some


differences.


Update the README.md file with the following content:


# movie_rating_app

> A Vue.js project

## Build Setup

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

Free download pdf