fix: add smoke tests to appveyor
MODIFY
src/generators/app.ts
src/generators/app.ts
@@ -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'])

RENAME
templates/appveyor.yml
templates/appveyor.yml.ejs
@@ -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

fix: add smoke tests to appveyor