Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #218 from karma-runner/semanitic-release
Browse files Browse the repository at this point in the history
feat(ci): enable semantic-release
  • Loading branch information
johnjbarton committed Apr 14, 2020
2 parents 36404cf + 5a5b6d5 commit f7ec4e7
Show file tree
Hide file tree
Showing 5 changed files with 13,045 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .travis.yml
Expand Up @@ -12,7 +12,19 @@ before_install:

before_script:
- npm install -g grunt-cli
- echo "TRAVIS_COMMIT $TRAVIS_COMMIT"
- echo "TRAVIS_PULL_REQUEST_SHA $TRAVIS_PULL_REQUEST_SHA"
- COMMIT_TO_VALIDATE=${TRAVIS_PULL_REQUEST_SHA:-$TRAVIS_COMMIT}
- echo "COMMIT_TO_VALIDATE $COMMIT_TO_VALIDATE"
- 'if [ "$VALIDATE_COMMIT_MSG" == "true" ]; then ./scripts/validate-commit-msg.sh $COMMIT_TO_VALIDATE; fi'

script:
- npm run test:lib
- grunt

after_success:
# run automated release process with semantic-release
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, TRAVIS_EVENT_TYPE=$TRAVIS_EVENT_TYPE, TRAVIS_NODE_VERSION=$TRAVIS_NODE_VERSION"
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" && "$TRAVIS_NODE_VERSION" == "12" ]]; then
npm run semantic-release;
fi;
1 change: 1 addition & 0 deletions commitlint.config.js
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}

0 comments on commit f7ec4e7

Please sign in to comment.