diff --git a/.travis.yml b/.travis.yml index d0fb40bfc..2f9deaded 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ env: - TASK=lint - TASK=test - TASK=coverage + - TASK=test:gas:ci before_script: - npm prune script: "npm run $TASK" diff --git a/codechecks.yml b/codechecks.yml new file mode 100644 index 000000000..8a630425b --- /dev/null +++ b/codechecks.yml @@ -0,0 +1,2 @@ +checks: + - name: eth-gas-reporter/codechecks diff --git a/package.json b/package.json index 5bea6fdc1..22ca2c406 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", "ethereumjs-abi": "^0.6.5", "ganache-cli": "^6.4.2", "mocha-lcov-reporter": "^1.3.0",