Skip to content

Commit

Permalink
Solccover (#732)
Browse files Browse the repository at this point in the history
* init version

* add .gitignore

* more

* lint

* Update README.md

* Update README.md

* Update .travis.yml

* Create .coveralls.yml

* Update README.md

* update coveralls

* run solccover only on arc-factory branch

* coverage

* Update .travis.yml
  • Loading branch information
orenyodfat authored Apr 10, 2020
1 parent b8e9868 commit 954e328
Show file tree
Hide file tree
Showing 13 changed files with 2,932 additions and 771 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: gqyxdBIEqw5OOCDYLWoEsmLcWeS5axht9
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ site/
yarn*
.DS_Store
report*
coverage/
coverage.json
.covera*
111 changes: 111 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
module.exports = {
mocha: {
enableTimeouts: false,
grep: "@skip-on-coverage", // Find everything with this tag
invert: true // Run the grep's inverse set.
},
providerOptions: {
accounts: [
{
secretKey:
"0xc5e8f61d1ab959b397eecc0a37a6517b8e67a0e7cf1f4bce5591f3ed80199122",
balance: "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
},
{
secretKey:
"0xd49743deccbccc5dc7baa8e69e5be03298da8688a15dd202e20f15d5e0e9a9fb",
balance: "10000000000000000000000"
},
{
secretKey:
"0x23c601ae397441f3ef6f1075dcb0031ff17fb079837beadaf3c84d96c6f3e569",
balance: "10000000000000000000000"
},
{
secretKey:
"0xee9d129c1997549ee09c0757af5939b2483d80ad649a0eda68e8b0357ad11131",
balance: "10000000000000000000000"
},
{
secretKey:
"0x87630b2d1de0fbd5044eb6891b3d9d98c34c8d310c852f98550ba774480e47cc",
balance: "10000000000000000000000"
},
{
secretKey:
"0x275cc4a2bfd4f612625204a20a2280ab53a6da2d14860c47a9f5affe58ad86d4",
balance: "10000000000000000000000"
},
{
secretKey:
"0x7f307c41137d1ed409f0a7b028f6c7596f12734b1d289b58099b99d60a96efff",
balance: "10000000000000000000000"
},
{
secretKey:
"0x2a8aede924268f84156a00761de73998dac7bf703408754b776ff3f873bcec60",
balance: "10000000000000000000000"
},
{
secretKey:
"0x8b24fd94f1ce869d81a34b95351e7f97b2cd88a891d5c00abc33d0ec9501902e",
balance: "10000000000000000000000"
},
{
secretKey:
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29085",
balance: "10000000000000000000000"
},
{
secretKey:
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29086",
balance: "10000000000000000000000"
},
{
secretKey:
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29087",
balance: "10000000000000000000000"
},
{
secretKey:
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29088",
balance: "10000000000000000000000"
},
{
secretKey:
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b29089",
balance: "10000000000000000000000"
},
{
secretKey:
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908a",
balance: "10000000000000000000000"
},
{
secretKey:
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908b",
balance: "10000000000000000000000"
},
{
secretKey:
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908c",
balance: "10000000000000000000000"
},
{
secretKey:
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908d",
balance: "10000000000000000000000"
},
{
secretKey:
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908e",
balance: "10000000000000000000000"
},
{
secretKey:
"0x28d1bfbbafe9d1d4f5a11c3c16ab6bf9084de48d99fbac4058bdfa3c80b2908f",
balance: "10000000000000000000000"
}
]
}
};
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ jobs:
- stage: tests
name: "JS Lint"
script: npx eslint .

- stage: coverage
name: "Solidity Test Coverage"
if: branch = arc-factory
script: npm run coveralls

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![Build Status](https://travis-ci.org/daostack/arc.svg?branch=master)](https://travis-ci.org/daostack/arc)
[![NPM Package](https://img.shields.io/npm/v/@daostack/arc.svg?style=flat-square)](https://www.npmjs.org/package/@daostack/arc)
[![Join the chat at https://gitter.im/daostack/Lobby](https://badges.gitter.im/daostack/Lobby.svg)](https://gitter.im/daostack/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Coverage Status](https://coveralls.io/repos/github/daostack/arc/badge.svg)](https://coveralls.io/github/daostack/arc)
# Arc

Arc is the base layer of the DAO stack. It consists of a set of smart contracts deployed on the Ethereum blockchain that define the basic building blocks and standard components that can be used to implement any DAO.
Expand Down
1 change: 1 addition & 0 deletions buidler.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
usePlugin("@nomiclabs/buidler-truffle5");
usePlugin("@nomiclabs/buidler-solhint");
usePlugin("solidity-coverage");

// This is a sample Buidler task. To learn how to create your own go to
// https://buidler.dev/guides/create-task.html
Expand Down
Loading

0 comments on commit 954e328

Please sign in to comment.