Skip to content

Commit

Permalink
fix: fix commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 1, 2018
1 parent 1cfc7fc commit 9aa2212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/scripts/test.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [[ "$CLI_ENGINE_GREENKEEPER_BRANCH" == 1 ]]; then
greenkeeper-lockfile-upload
fi

yarn add -D nyc @anycli/nyc-config mocha-junit-reporter<%- semantic_release ? " @commitlint/cli @commitlint/config-conventional" : "" %>
yarn add -D nyc@11 @anycli/nyc-config@0 mocha-junit-reporter@1<%- semantic_release ? " @commitlint/cli@6 @commitlint/config-conventional@6" : "" %>

mkdir -p reports
NYC=(yarn exec nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc)
Expand All @@ -34,5 +34,5 @@ MOCHA_FILE=reports/mocha.xml "${NYC[@]}" yarn run test --reporter mocha-junit-re
curl -s https://codecov.io/bash | bash

<%_ if (semantic_release) { _%>
yarn exec commitlint --from origin/master
yarn exec commitlint -- -x @commitlint/config-conventional --from origin/master
<%_ } _%>

0 comments on commit 9aa2212

Please sign in to comment.