File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 66before_install :
77 - git fetch --unshallow
88before_script :
9- - npm run lint:prcommits
109 - npm run build
1110script :
11+ - npm run travis:lint:commits
1212 - npm test
Original file line number Diff line number Diff line change 2121 "pretest" : " npm run deps" ,
2222 "test" : " ava" ,
2323 "lint" : " xo *.js" ,
24- "lint:prcommits" : " ./scripts/lint-prcommits.sh" ,
2524 "deps" : " npm run build && dependency-check . --missing && dependency-check . --extra --no-dev -i conventional-changelog-angular -i conventional-changelog-lint-config-angular" ,
2625 "commitlint" : " node distribution/cli.js --from=HEAD~1" ,
2726 "preversion" : " npm run build && npm test" ,
2827 "release" : " npm version --no-git-tag-version $(conventional-recommended-bump -p angular)" ,
2928 "version" : " npm run changelog && git add ." ,
30- "postversion" : " git commit -m \" chore(release): v$npm_package_version\n $(conventional-changelog -p angular)\" && git tag -a v$npm_package_version -m \" $(conventional-changelog -p angular)\" "
29+ "postversion" : " git commit -m \" chore(release): v$npm_package_version\n $(conventional-changelog -p angular)\" && git tag -a v$npm_package_version -m \" $(conventional-changelog -p angular)\" " ,
30+ "travis:lint:commits" : " ./scripts/lint:commits.sh"
3131 },
3232 "ava" : {
3333 "babel" : " inherit" ,
Original file line number Diff line number Diff line change 1515 TO=" $TRAVIS_PULL_REQUEST_BRANCH "
1616fi
1717
18- if [[ $TRAVIS_BRANCH == $TO ]] ; then
19- conventional-changelog-lint --from=" HEAD~1 "
20- else
21- conventional-changelog- lint --from= " $TRAVIS_BRANCH " --to= " $TO "
22- fi
18+ # Lint all commits in the PR
19+ conventional-changelog-lint --from=" $TRAVIS_BRANCH " --to= " $TO "
20+
21+ # Always lint the triggerig commit
22+ conventional-changelog-lint --from= " $TRAVIS_COMMIT "
You can’t perform that action at this time.
0 commit comments