-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker files for Parity and additional coverage testing
- Loading branch information
Showing
15 changed files
with
141 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
.DS_Store | ||
*.egg-info/ | ||
.tox/ | ||
local | ||
local/ | ||
.cache | ||
node_modules/ | ||
.idea | ||
__pycache__/ | ||
agent/src/sn_agent_ui/static/vendor/ | ||
/geth-data/ | ||
/parity-data/ | ||
/agent-data/ | ||
/agent-web-data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,4 @@ services: | |
- docker | ||
|
||
script: | ||
- ./tools.sh test | ||
|
||
after_success: | ||
- coveralls | ||
- docker-compose run agent travis-test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ FROM python:3 | |
|
||
ENV PYTHONUNBUFFERED 1 | ||
|
||
WORKDIR /data | ||
WORKDIR /code | ||
|
||
ADD requirements.txt /code | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ requests | |
pytest | ||
pytest-cov | ||
python-coveralls | ||
|
||
sphinx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
|
||
function run_tests { | ||
py.test --verbose --cov-config .coveragerc --cov-report html --cov=sn_agent tests | ||
} | ||
|
||
case "$1" in | ||
|
||
noop) | ||
;; | ||
|
||
run) | ||
python agent.py | ||
;; | ||
|
||
docs) | ||
cd docs | ||
make html | ||
;; | ||
|
||
test) | ||
run_tests | ||
;; | ||
|
||
travis-test) | ||
run_tests | ||
coveralls | ||
;; | ||
|
||
*) echo 'No operation specified' | ||
exit 0; | ||
;; | ||
|
||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
geth --datadir=/geth-data --metrics --shh --rpc --rpcaddr 0.0.0.0 --ws --wsaddr 0.0.0.0 --nat none --verbosity 5 --vmdebug --dev --maxpeers 0 --gasprice 0 --debug --pprof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
FROM parity | ||
FROM parity/parity:stable | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get -y -qq dist-upgrade && \ | ||
apt-get -y -qq install software-properties-common && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
bash <(curl https://get.parity.io -L) | ||
RUN ls -lar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o verbose | ||
set -o xtrace | ||
set -o nounset | ||
|
||
case "$1" in | ||
|
||
run) | ||
ls -lar | ||
;; | ||
|
||
--help) | ||
echo 'Executing in the default context, specify "run" to actually execute' | ||
;; | ||
|
||
*) echo 'No operation specified' | ||
exit 0; | ||
;; | ||
|
||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters