Skip to content

Commit

Permalink
Code skeleton upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Licari authored and Giacomo Licari committed Jul 2, 2018
1 parent 882ed78 commit 6dd83ad
Show file tree
Hide file tree
Showing 77 changed files with 8,145 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.cache
.dockerignore
.gitignore
.git
.env
.pylintrc
__pycache__
*.pyc
*.egg-info
.idea/

13 changes: 13 additions & 0 deletions .env_local
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
PYTHONPATH=/app/safe_transaction_history
C_FORCE_ROOT=true
DEBUG=0
USE_DOCKER=False
DJANGO_SETTINGS_MODULE=config.settings.test
DJANGO_SECRET_KEY=test-secret#-!key
DATABASE_URL=psql://postgres@localhost:5432/postgres
REDIS_URL=redis://localhost/0
CELERY_BROKER_URL=redis://localhost/0
ETHEREUM_NODE_URL=http://localhost:8545
SAFE_PERSONAL_CONTRACT_ADDRESS=0xEc7C75C1548765AB51A165873b0B1b71663c1266
SAFE_FUNDER_PRIVATE_KEY=4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d
SAFE_TX_SENDER_PRIVATE_KEY=6cbed15c793ce57650b9877cf6fa156fbef513c4e6134f022a85b1ffdd59b2a1
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ venv.bak/

# mypy
.mypy_cache/

.idea/
44 changes: 44 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
language: python
cache: pip
python:
- "3.6"
dist: trusty
env:
global:
- DOCKERHUB_PROJECT=safe-transaction-history
- SOURCE_FOLDER=safe_transaction_history
- PIP_USE_MIRRORS=true
- DJANGO_SETTINGS_MODULE=config.settings.test
- DATABASE_URL=psql://postgres@localhost/travisci
- ETHEREUM_NODE_URL=http://localhost:8545
services:
- docker
- postgresql
- redis-server
install:
- travis_retry pip install -r requirements-test.txt
- travis_retry pip install coveralls
- npm install -g ganache-cli
before_script:
- psql -c 'create database travisci;' -U postgres
script:
- ganache-cli -d -p 8545 --defaultBalanceEther 10000 -a 30 > /dev/null &
- sleep 5
- coverage run --source=$SOURCE_FOLDER -m py.test
deploy:
- provider: script
script: bash scripts/deploy_docker.sh staging
on:
branch: master
- provider: script
script: bash scripts/deploy_docker.sh develop
on:
branch: develop
- provider: script
script: bash scripts/deploy_docker.sh $TRAVIS_TAG
on:
tags: true
branch: master

after_success:
- coveralls
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Gnosis
Loading

0 comments on commit 6dd83ad

Please sign in to comment.