Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from Coveralls to Codecov #646

Merged
merged 1 commit into from
Jan 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
version: 2.1

orbs:
codecov: codecov/[email protected]

aliases:
- &defaults
working_directory: ~/project/ethereumjs-vm
docker:
- image: circleci/node:8
- &restore_node_modules
restore_cache:
name: Restore node_modules cache
keys:
- node8-{{ checksum "package.json" }}

jobs:
install:
<<: *defaults
steps:
- checkout
- *restore_node_modules
- run:
name: Install dependencies
command: npm install
- save_cache:
name: Save node_modules cache
key: node8-{{ checksum "package.json" }}
paths:
- node_modules/
- persist_to_workspace:
root: ~/project
paths:
- ethereumjs-vm/
coverage:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- *restore_node_modules
- run:
name: coverage
command: npm run coverage
- codecov/upload:
file: ./coverage/lcov.info
flags: vm

workflows:
version: 2
install-and-coverage:
jobs:
- install
- coverage:
requires:
- install
29 changes: 0 additions & 29 deletions .github/workflows/vm-coverage.yml

This file was deleted.

9 changes: 8 additions & 1 deletion .github/workflows/vm-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: 'VM Lint'
on: [push, pull_request]
on:
push:
branches:
- master
tags:
- '*'
pull_request:
types: [opened, reopened, synchronize]
jobs:
lint:
runs-on: ubuntu-latest
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/vm-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: 'VM Test'
on: [push, pull_request]
on:
push:
branches:
- master
tags:
- '*'
pull_request:
types: [opened, reopened, synchronize]
jobs:
test-api:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![NPM Package](https://img.shields.io/npm/v/ethereumjs-vm.svg?style=flat-square)](https://www.npmjs.org/package/ethereumjs-vm)
[![Actions Status](https://github.com/ethereumjs/ethereumjs-vm/workflows/vm-test/badge.svg)](https://github.com/ethereumjs/ethereumjs-vm/actions)
[![Coverage Status](https://img.shields.io/coveralls/ethereumjs/ethereumjs-vm.svg?style=flat-square)](https://coveralls.io/r/ethereumjs/ethereumjs-vm)
[![Code Coverage](https://codecov.io/gh/ethereumjs/ethereumjs-vm/branch/master/graph/badge.svg)](https://codecov.io/gh/ethereumjs/ethereumjs-vm)
[![Gitter](https://img.shields.io/gitter/room/ethereum/ethereumjs.svg?style=flat-square)](https://gitter.im/ethereum/ethereumjs)

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
"scripts": {
"build:dist": "ethereumjs-config-build",
"prepublishOnly": "npm run lint && npm run build:dist && npm run testBuildIntegrity",
"coverage": "nyc npm run coverage:test && nyc report --reporter=text-lcov > .nyc_output/lcov.info",
"coverage": "nyc npm run coverage:test && nyc report --reporter=lcov",
"coverage:test": "npm run build:dist && tape './tests/api/**/*.js' ./tests/tester.js --state --dist",
"coveralls": "npm run coverage && if [ -n \"$COVERALLS_REPO_TOKEN\" ]; then coveralls <.nyc_output/lcov.info; fi",
"docs:build": "typedoc lib",
"test:vm": "node ./tests/tester --vm",
"test:state": "npm run build:dist && node ./tests/tester --state --dist",
Expand Down Expand Up @@ -72,7 +71,6 @@
"@types/lru-cache": "^5.1.0",
"@types/node": "^11.13.4",
"browserify": "^16.2.3",
"coveralls": "^3.0.0",
"ethereumjs-testing": "git+https://github.com/ethereumjs/ethereumjs-testing.git#v1.3.0",
"husky": "^2.1.0",
"karma": "^4.0.1",
Expand Down