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

Codechecks gas ci #1

Open
wants to merge 11 commits into
base: next
Choose a base branch
from
Open
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
26 changes: 26 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2.0
jobs:
unit-test:
docker:
- image: circleci/node:10.12-stretch
steps:
- checkout
- run:
name: Delete any old node_modules
command: |
rm -rf node_modules/
- run:
name: Install dependencies
command: |
npm install
- run:
name: Run tests
command: |
npm run test:gas

workflows:
version: 2
build:
jobs:
- unit-test

15 changes: 6 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '8'
- '10'
cache:
npm: false
before_install:
- sudo apt-get install -y netcat
env:
- TASK=lint
- TASK=test
- TASK=coverage
before_script:
- npm prune
- TASK=test:gas:ci
script: "npm run $TASK"
after_success:
- cat coverage/lcov.info | ./node_modules/.bin/coveralls
2 changes: 2 additions & 0 deletions codechecks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
checks:
- name: eth-gas-reporter/codechecks
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"compile": "truffle compile",
"test": "TRUFFLE_TEST=true npm run ganache-cli:test",
"test:gas": "GAS_REPORTER=true npm test",
"test:gas:ci": "GAS_REPORTER=true npm test && npx codechecks",
"lint": "solium --dir ./contracts",
"coverage": "SOLIDITY_COVERAGE=true npm run ganache-cli:test",
"console": "truffle dev",
Expand Down Expand Up @@ -33,9 +34,10 @@
"repository": "https://github.com/aragon/aragonOS",
"license": "(GPL-3.0-or-later OR MIT)",
"devDependencies": {
"@codechecks/client": "^0.1.5",
"coveralls": "^2.13.3",
"eth-ens-namehash": "^2.0.8",
"eth-gas-reporter": "^0.1.1",
"eth-gas-reporter": "^0.2.8-alpha.2",
"ethereumjs-abi": "^0.6.5",
"ganache-cli": "^6.4.2",
"mocha-lcov-reporter": "^1.3.0",
Expand Down