Reputation: 45
How can I use cmd command in my .travis.yml? I need to execute a 'cd' before install my package & execute my server. Here is my .travis.yml
language: node_js
node_js:
- 6
services:
- mongodb
install: npm install
script: npm start
Upvotes: 1
Views: 88
Reputation: 376
Use before_install
, please check the documentation of travis:
language: node_js
node_js:
- 6
services:
- mongodb
before_install: cd ./path
install: npm install
script: npm start
Upvotes: 1