Skip to content

Commit

Permalink
Remove Codecov (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
RodEsp committed Jun 7, 2021
1 parent 797c27f commit 899cc90
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 25 deletions.
3 changes: 0 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,6 @@ jobs:
- run: ./node_modules/.bin/tsc
- run: ./bin/run --version
- run: ./bin/run --help
- run: |
$NYC yarn devcli
curl -s https://codecov.io/bash | bash
node-10-devcli:
<<: *node-12-devcli
docker:
Expand Down
4 changes: 2 additions & 2 deletions scripts/release-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ module.exports = (_, options) => {
const [, type, format] = example.split('-')

const options = format === 'ts' ?
'--options=yarn,typescript,mocha,circleci,appveyor,codecov,eslint' :
'--options=yarn,mocha,circleci,appveyor,codecov,eslint'
'--options=yarn,typescript,mocha,circleci,appveyor,eslint' :
'--options=yarn,mocha,circleci,appveyor,eslint'

const d = path.join(__dirname, '../tmp/examples', example)
sh.mkdir('-p', path.dirname(d))
Expand Down
7 changes: 0 additions & 7 deletions src/generators/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class App extends Generator {
mocha: boolean;
circleci: boolean;
appveyor: boolean;
codecov: boolean;
typescript: boolean;
eslint: boolean;
yarn: boolean;
Expand Down Expand Up @@ -73,7 +72,6 @@ class App extends Generator {
ci: {
circleci: boolean;
appveyor: boolean;
codecov: boolean;
travisci: boolean;
};
}
Expand All @@ -84,8 +82,6 @@ class App extends Generator {

appveyor!: boolean

codecov!: boolean

ts!: boolean

eslint!: boolean
Expand Down Expand Up @@ -116,7 +112,6 @@ class App extends Generator {
mocha: opts.options.includes('mocha'),
circleci: opts.options.includes('circleci'),
appveyor: opts.options.includes('appveyor'),
codecov: opts.options.includes('codecov'),
typescript: opts.options.includes('typescript'),
eslint: opts.options.includes('eslint'),
yarn: opts.options.includes('yarn') || hasYarn,
Expand Down Expand Up @@ -267,7 +262,6 @@ class App extends Generator {
choices: [
{name: 'circleci (continuous integration/delivery service)', value: 'circleci'},
{name: 'appveyor (continuous integration/delivery service)', value: 'appveyor'},
{name: 'codecov (online code coverage report viewer)', value: 'codecov'},
{name: 'travisci (continuous integration/delivery service)', value: 'travisci'},
],
filter: ((arr: string[]) => _.keyBy(arr)) as any,
Expand All @@ -289,7 +283,6 @@ class App extends Generator {
this.mocha = this.options.mocha
this.circleci = this.options.circleci
this.appveyor = this.options.appveyor
this.codecov = this.options.codecov
this.eslint = this.options.eslint
this.travisci = this.options.travisci

Expand Down
7 changes: 0 additions & 7 deletions templates/circle.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ jobs:
- run:
name: Testing
command: <%- yarn ? 'yarn' : 'npm' %> test
<%_ if (mocha && codecov) { _%>
- run:
name: Submitting code coverage to codecov
command: |
./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash
<%_ } _%>
node-12:
<<: *test
docker:
Expand Down
6 changes: 0 additions & 6 deletions templates/travis.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,3 @@ script:
- ./bin/run --help
<%_ } _%>
- <%- yarn ? 'yarn' : 'npm' %> run test

<% if(mocha && codecov) { %>
after_success:
- ./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov
- bash < (curl -s https://codecov.io/bash)
<% } %>

0 comments on commit 899cc90

Please sign in to comment.