Skip to content

Commit

Permalink
fix: add script file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Sep 23, 2017
1 parent da8d756 commit 6a5ae53
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ notifications:
email: false
node_js:
- '8'
script:
- npm run validate
after_success:
- npx codecov
- npx -p semantic-release@7 -c "semantic-release pre && npm publish && semantic-release post"
script: npm run validate
after_success: node src travis-after-success
branches:
only:
- master
16 changes: 16 additions & 0 deletions src/scripts/travis-after-success.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const spawn = require('cross-spawn')
const {resolveBin, getConcurrentlyArgs} = require('../utils')

const result = spawn.sync(
resolveBin('concurrently'),
getConcurrentlyArgs(
{
codecov: `echo installing codecov && npx -p codecov -c 'echo running codecov && codecov'`,
release: `echo installing semantic-release && npx -p semantic-release@8 -c 'echo running semantic-release && semantic-release pre && npm publish && semantic-release post'`,
},
{killOthers: false},
),
{stdio: 'inherit'},
)

process.exit(result.status)

0 comments on commit 6a5ae53

Please sign in to comment.