Mera-Gangapersaud / Creative-Collab

A creative collaborative writing app
MIT License
0 stars 6 forks source link

Update Travis build config #28

Closed seanprashad closed 5 years ago

seanprashad commented 6 years ago

Fixes #27: Travis Build is Failing

Our initial .travis.yml was failing sporadically due to the node_modules folder not being cached properly (see this SO post).

We'll use npm ci, an alternative to npm install that is "... meant to be used in automated environments such as test platforms, continuous integration, and deployment. It can be significantly faster than a regular npm install by skipping certain user-oriented features."

We can also enable both items on the settings in Travis for this repo since we will only builds PR's and the master branch:

image

This means that any branches created by maintainers will not run prematurely in Travis (they'll have to open a PR for their patch).

seanprashad commented 6 years ago

Related docs: https://docs.npmjs.com/cli/ci