Add eth-gas-reporter codecheck for gas usage report on CI (#264)

* Update eth-gas-reporter
* Add codechecks report on CI
This commit is contained in:
Gerardo Nardelli 2019-08-07 18:25:56 -03:00 committed by Alexander Kolotov
parent 907bde5d21
commit b219246942
4 changed files with 6311 additions and 80 deletions

View File

@ -7,8 +7,8 @@ node_js:
cache:
yarn: true
env:
- SOLIDITY_COVERAGE=false
- SOLIDITY_COVERAGE=true
script:
- yarn lint
- yarn test
- $TASK=lint
- $TASK=test
- $TASK=coverage
- $TASK=test:gasreport:ci
script: "npm run $TASK"

6
codechecks.yml Normal file
View File

@ -0,0 +1,6 @@
checks:
- name: eth-gas-reporter/codechecks
settings:
branches:
- develop
- master

6371
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@
"scripts": {
"test": "scripts/test.sh",
"test:gasreport": "GASREPORT=true npm run test",
"test:gasreport:ci": "npm run test:gasreport && npx codechecks",
"compile": "truffle compile && truffle compile spuriousDragon",
"flatten": "bash flatten.sh",
"lint": "npm run lint:js && npm run lint:sol",
@ -28,6 +29,7 @@
"truffle": "^5.0.15"
},
"devDependencies": {
"@codechecks/client": "^0.1.5",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-bn": "^0.1.1",
@ -38,7 +40,7 @@
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-node": "^9.0.1",
"eslint-plugin-prettier": "^3.0.1",
"eth-gas-reporter": "^0.1.12",
"eth-gas-reporter": "^0.2.9",
"nodemon": "^1.17.3",
"prettier": "^1.17.1",
"prettier-plugin-solidity": "^1.0.0-alpha.27",