Skip to content

Commit

Permalink
fix: add smoke tests to appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 1, 2018
1 parent ad3544b commit f33a88d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class App extends Generator {
this.fs.copyTpl(this.templatePath('scripts/setup_git'), this.destinationPath('.circleci/setup_git'), this)
this.fs.copyTpl(this.templatePath('README.md.ejs'), this.destinationPath('README.md'), this)
this.fs.copyTpl(this.templatePath('circle.yml.ejs'), this.destinationPath('.circleci/config.yml'), this)
this.fs.copyTpl(this.templatePath('appveyor.yml'), this.destinationPath('appveyor.yml'), this)
this.fs.copyTpl(this.templatePath('appveyor.yml.ejs'), this.destinationPath('appveyor.yml'), this)

// git
// if (this.fromScratch) this.spawnCommandSync('git', ['init'])
Expand Down
6 changes: 6 additions & 0 deletions templates/appveyor.yml → templates/appveyor.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ install:
- git config --global user.name "anycli"
- yarn add -D nyc @anycli/nyc-config
test_script:
<%_ if (type === 'single' || type === 'multi') { _%>
- .\bin\run --version
- .\bin\run --help
<%_ } else if (type === 'plugin') { _%>
- .\bin\run --help
<%_ } _%>
- 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
Expand Down

0 comments on commit f33a88d

Please sign in to comment.