Skip to content

Commit

Permalink
fix: smoke tests first
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 1, 2018
1 parent 80fd8ff commit e324c14
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions templates/scripts/test.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ fi

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

<%_ if (type === 'single' || type === 'multi') { _%>
./bin/run -v
./bin/run --help
<%_ } else if (type === 'plugin') { _%>
./bin/run --help
<%_ } _%>

mkdir -p reports
NYC=(yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc)

MOCHA_FILE=reports/mocha.xml "${NYC[@]}" yarn test --reporter mocha-junit-reporter

"${NYC[@]}" report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash

<%_ if (type === 'single' || type === 'multi') { _%>
./bin/run -v
./bin/run --help
<%_ } else if (type === 'plugin') { _%>
./bin/run --help
<%_ } _%>
<%_ if (semantic_release) { _%>

yarn exec commitlint -- -x @commitlint/config-conventional --from origin/master
Expand Down

0 comments on commit e324c14

Please sign in to comment.