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:
This means that any branches created by maintainers will not run prematurely in Travis (they'll have to open a PR for their patch).
Fixes #27: Travis Build is Failing
Our initial
.travis.yml
was failing sporadically due to thenode_modules
folder not being cached properly (see this SO post).We'll use
npm ci
, an alternative tonpm 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:This means that any branches created by maintainers will not run prematurely in Travis (they'll have to open a PR for their patch).