Skip to content

Commit

Permalink
ci: allow after_success only for master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
CheerlessCloud committed Sep 20, 2018
1 parent e66b9b7 commit 7cfa8be
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ script:
- npm run flow:check
- npm run test:cover
- npm run build
- npm run lint
after_success:
- npm run report-coverage
- ./node_modules/.bin/travis-deploy-once && npm run semantic-release
- if [ "$TRAVIS_BRANCH" == "master" ]; then
npm run report-coverage;
./node_modules/.bin/travis-deploy-once && npm run semantic-release;
fi

0 comments on commit 7cfa8be

Please sign in to comment.