Skip to content

coveralls #797

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

Merged
merged 6 commits into from
Oct 13, 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
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cache/
coverage/
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ node_modules/
*.tgz
.vscode/
site/
coverage/
coverage.json
.covera*
cache/
yarn*
8 changes: 8 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
mocha: {
enableTimeouts: false,
grep: "@skip-on-coverage", // Find everything with this tag
invert: true // Run the grep's inverse set.
},
skipFiles: ['test/']
}
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dist: trusty
language: node_js

node_js:
- "10.16.3"
- "12.19.0"

before_install:

Expand All @@ -25,3 +25,8 @@ jobs:
- stage: tests
name: "JS Lint"
script: npm run lint

- stage: coverage
name: "Solidity Test Coverage"
if: branch = master
script: npm run coveralls
14 changes: 7 additions & 7 deletions migrations/2_deploy_organization.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//this migration file is used only for testing purpose
var constants = require('../test/constants');

var Avatar = artifacts.require('./Avatar.sol');
var DaoCreator = artifacts.require('./DaoCreator.sol');
var GlobalConstraintRegistrar = artifacts.require('./GlobalConstraintRegistrar.sol');
Expand Down Expand Up @@ -34,20 +34,20 @@ var accounts;
//Deploy test organization with the following schemes:
//schemeRegistrar, upgradeScheme,globalConstraintRegistrar,simpleICO,contributionReward.
module.exports = async function(deployer) {
deployer.deploy(ControllerCreator, {gas: constants.ARC_GAS_LIMIT}).then(async function(){
await deployer.deploy(DAOTracker, {gas: constants.ARC_GAS_LIMIT});
deployer.deploy(ControllerCreator).then(async function(){
await deployer.deploy(DAOTracker);
var daoTracker = await DAOTracker.deployed();
var controllerCreator = await ControllerCreator.deployed();
await deployer.deploy(DaoCreator,controllerCreator.address,daoTracker.address, {gas: constants.ARC_GAS_LIMIT});
var daoCreatorInst = await DaoCreator.deployed(controllerCreator.address,{gas: constants.ARC_GAS_LIMIT});
await deployer.deploy(DaoCreator,controllerCreator.address,daoTracker.address);
var daoCreatorInst = await DaoCreator.deployed(controllerCreator.address);
// Create DAOstack:

await web3.eth.getAccounts(function(err,res) { accounts = res; });
founders[0] = accounts[0];
var returnedParams = await daoCreatorInst.forgeOrg(orgName, tokenName, tokenSymbol, founders,
initTokenInWei, initRepInWei,cap,{gas: constants.ARC_GAS_LIMIT});
initTokenInWei, initRepInWei,cap);
var AvatarInst = await Avatar.at(returnedParams.logs[0].args._avatar);
await deployer.deploy(AbsoluteVote,{gas: constants.ARC_GAS_LIMIT});
await deployer.deploy(AbsoluteVote);
// Deploy AbsoluteVote:
var AbsoluteVoteInst = await AbsoluteVote.deployed();
// Deploy SchemeRegistrar:
Expand Down
Loading