Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
4d91118d
Commit
4d91118d
authored
Jul 21, 2017
by
Francisco Giordano
Committed by
GitHub
Jul 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #320 from cgewecke/coverage-badge
Minor coverage maintenance
parents
1bb1d41b
ed872ca0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
11 deletions
+25
-11
.gitignore
.gitignore
+4
-2
README.md
README.md
+1
-1
coverage.sh
scripts/coverage.sh
+20
-8
No files found.
.gitignore
View file @
4d91118d
...
@@ -4,4 +4,6 @@ node_modules/
...
@@ -4,4 +4,6 @@ node_modules/
build/
build/
.DS_Store/
.DS_Store/
/coverage
/coverage
coverage.json
coverage.json
\ No newline at end of file
allFiredEvents
scTopics
\ No newline at end of file
README.md
View file @
4d91118d
# Zeppelin Solidity
# Zeppelin Solidity
[

](https://www.npmjs.org/package/zeppelin-solidity)
[

](https://www.npmjs.org/package/zeppelin-solidity)
[

](https://travis-ci.org/OpenZeppelin/zeppelin-solidity)
[

](https://travis-ci.org/OpenZeppelin/zeppelin-solidity)
[

](https://coveralls.io/github/OpenZeppelin/zeppelin-solidity?branch=coveralls
)
[

](https://coveralls.io/github/OpenZeppelin/zeppelin-solidity?branch=master
)
OpenZeppelin is a library for writing secure
[
Smart Contracts
](
https://en.wikipedia.org/wiki/Smart_contract
)
on Ethereum.
OpenZeppelin is a library for writing secure
[
Smart Contracts
](
https://en.wikipedia.org/wiki/Smart_contract
)
on Ethereum.
...
...
scripts/coverage.sh
View file @
4d91118d
#!
/bin/bash
#!/bin/bash
# Executes cleanup function at script exit.
trap
cleanup EXIT
output
=
$(
nc
-z
localhost 8555
;
echo
$?
)
cleanup
()
{
[
$output
-eq
"0"
]
&&
trpc_running
=
true
# Kill the testrpc instance that we started (if we started one).
if
[
!
$trpc_running
]
;
then
if
[
-n
"
$testrpc_pid
"
]
;
then
kill
-9
$testrpc_pid
fi
}
testrpc_running
()
{
nc
-z
localhost 8555
}
if
testrpc_running
;
then
echo
"Using existing testrpc-sc instance"
else
echo
"Starting testrpc-sc to generate coverage"
echo
"Starting testrpc-sc to generate coverage"
#
we give each account 1M ether, needed for high-value tests
#
We define 10 accounts with balance 1M ether, needed for high-value tests.
./node_modules/ethereumjs-testrpc-sc/bin/testrpc
--gasLimit
0xfffffffffff
--port
8555
\
./node_modules/ethereumjs-testrpc-sc/bin/testrpc
--gasLimit
0xfffffffffff
--port
8555
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000"
\
...
@@ -19,7 +31,7 @@ if [ ! $trpc_running ]; then
...
@@ -19,7 +31,7 @@ if [ ! $trpc_running ]; then
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000"
\
>
/dev/null &
>
/dev/null &
trpc_pid
=
$!
t
est
rpc_pid
=
$!
fi
fi
SOLIDITY_COVERAGE
=
true
&&
./node_modules/.bin/solidity-coverage
SOLIDITY_COVERAGE
=
true
./node_modules/.bin/solidity-coverage
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment