Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: simplify travis and npm-test config
* Remove 'sudo: false'. This was to make Travis use a fast container, instead of a VM. But, this option no longer exits. Travis now always uses a VM, and they're relatively fast. * Use 'cache: npm'. This repo has package-lock.json, which is great! (thank you). When package-lock.json exists, the installer deletes node_modules completely and rebuilds it fresh, based on the lock file. During local development, this is very fast because npm also has a cache at $HOME/.npm (which is not deleted). The 'cache: npm' shortcut will cache "$HOME/.npm" instead of "node_modules". Otherwise, this directory is copied by Travis from the cache but then immediately deleted by npm-install/npm-ci. <https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#caching-with-npm> * Make 'npm test' include lint checks. This project uses ESLint and it can be run manually via 'npm run lint'. It is also run automatically by Travis. Make ESLint also executed by default when developers run 'npm test' locally. That makes it easier to contribute by not having to learn about lint issues after submitting a patch, and not having to read .travis.yaml or package.json in detail.
- Loading branch information