Skip to content

Commit

Permalink
fix: fix yarn execs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 1, 2018
1 parent 9aa2212 commit 93b3f16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ install:
- git config --global user.name "anycli"
- yarn add -D nyc @anycli/nyc-config
test_script:
- yarn exec nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc yarn test
- yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc yarn test
after_test:
- yarn exec nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc report --reporter text-lcov > coverage.lcov
- yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc report --reporter text-lcov > coverage.lcov
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
Expand Down
4 changes: 2 additions & 2 deletions templates/scripts/test.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ fi
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)
NYC=(yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc)

MOCHA_FILE=reports/mocha.xml "${NYC[@]}" yarn run test --reporter mocha-junit-reporter
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
Expand Down

0 comments on commit 93b3f16

Please sign in to comment.