Jason Dill
Jason Dill

Reputation: 45

Travis cmd command

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

Answers (2)

Vaibhav Magon
Vaibhav Magon

Reputation: 1503

before_install should work in this case.

Upvotes: 0

Sombrero
Sombrero

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

Related Questions