dwyl / adoro

❤️ The little publishing tool you'll love using. [work-in-progress]
http://www.dwyl.io/
32 stars 8 forks source link

Is it possible to hook travis up to a custom test script? #49

Closed jackcarlisle closed 8 years ago

jackcarlisle commented 8 years ago

Our pre-build tests are failing because travis is running npm test (related to master), whereas we have written our own custom 'npm run tapetest' script for tests on our own branch. Is it possible to configure travis in such a way that it runs a script of your choice for a specific branch?

nelsonic commented 8 years ago

@jackcarlisle yes, you can. https://docs.travis-ci.com/user/customizing-the-build/ in your case you can simply set your test script in package.json to:

"test": "npm run tapetest && ./node_modules/.bin/istanbul cover ./node_modules/tape/bin/tape ./test/*.test.js"

if you get stuck let me know.

jackcarlisle commented 8 years ago

@nelsonic Thank you!