environment: nodejs_version: "9" cache: - '%LOCALAPPDATA%\Yarn -> appveyor.yml' - node_modules -> yarn.lock install: - ps: Install-Product node $env:nodejs_version x64 - git submodule sync - git submodule update --init --recursive - git config --global user.email "anycli@example.com" - git config --global user.name "anycli" - yarn add -D nyc@11 @anycli/nyc-config@0 test_script: <%_ if (type === 'single' || type === 'multi') { _%> - .\bin\run --version - .\bin\run --help <%_ } else if (type === 'plugin') { _%> - .\bin\run --help <%_ } _%> - .\node_modules\.bin\nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc yarn test after_test: - .\node_modules\.bin\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 bash codecov.sh build: off