I am using travis for building my project. I am having a deploy script something like below,
deploy:
provider: script
script:
- npm run deploy
- npm run test:deploy-results
skip-cleanup: true
on:
branch: build
Here is how the npm script in package.json
looks like,
"test:deploy-results": "node ./scripts/deploy-test-reports.js",
Travis is failing with status code 127. I tried to find some info but couldn't get any.
After reading more, I figured it out that it is a Linux error code for not able to find the interpreter/compiler or missing executable.
Also, I need to add multiple deploy provider for executing multiple scripts in .travis.yml
like below
deploy:
skip_cleanup: true
# Publish docs
provider: script
script: npm run test:deploy-results
on:
branch: build
# Test reports
provider: script
script: npm run test:deploy-results
on:
branch: build