File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 6
6
before_install :
7
7
- git fetch --unshallow
8
8
before_script :
9
- - npm run lint:prcommits
10
9
- npm run build
11
10
script :
11
+ - npm run travis:lint:commits
12
12
- npm test
Original file line number Diff line number Diff line change 21
21
"pretest" : " npm run deps" ,
22
22
"test" : " ava" ,
23
23
"lint" : " xo *.js" ,
24
- "lint:prcommits" : " ./scripts/lint-prcommits.sh" ,
25
24
"deps" : " npm run build && dependency-check . --missing && dependency-check . --extra --no-dev -i conventional-changelog-angular -i conventional-changelog-lint-config-angular" ,
26
25
"commitlint" : " node distribution/cli.js --from=HEAD~1" ,
27
26
"preversion" : " npm run build && npm test" ,
28
27
"release" : " npm version --no-git-tag-version $(conventional-recommended-bump -p angular)" ,
29
28
"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"
31
31
},
32
32
"ava" : {
33
33
"babel" : " inherit" ,
Original file line number Diff line number Diff line change 15
15
TO=" $TRAVIS_PULL_REQUEST_BRANCH "
16
16
fi
17
17
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