Skip to content

Commit

Permalink
fix(travis): get more insight into what is going on
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Apr 16, 2019
1 parent 125c916 commit 03ad7bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/scripts/travis-after-success.js
Expand Up @@ -8,10 +8,16 @@ const {
} = require('../utils')

console.log('installing and running travis-deploy-once')
const deployOnceResults = spawn.sync('npx', ['travis-deploy-once@5'])
const deployOnceResults = spawn.sync('npx', ['travis-deploy-once@5'], {
stdio: 'inherit',
})
if (deployOnceResults.status === 0) {
runAfterSuccessScripts()
} else {
console.log(
'travis-deploy-once exited with a non-zero exit code',
deployOnceResults.status,
)
process.exit(deployOnceResults.status)
}

Expand Down

0 comments on commit 03ad7bf

Please sign in to comment.