Make sure that no files were changed after travis finishes running
npm install --save-dev travis-check-changes
In package.json
:
"scripts": {
"test": "... whatever you have here ...",
"after-travis": "travis-check-changes"
},
In .travis.yml
:
script:
- npm test
- npm run after-travis