Skip to content

Commit

Permalink
merge master into develop and change to pass acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrogr committed Oct 3, 2017
2 parents e93be4c + 66b471a commit d9150b3
Show file tree
Hide file tree
Showing 42 changed files with 540 additions and 622 deletions.
1 change: 1 addition & 0 deletions .env.required
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
BROKER_URI
DATABASE_URI
SCAN_PATH
SHARED_VOLUME_PATH
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: python

services: docker

python:
- "3.6"

install:
- pip install tox

script:
- tox
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,26 @@ FROM python:3.6
# install docker
RUN curl -sSL https://get.docker.com/ | /bin/bash

# add sources
RUN mkdir /tmp/install
ADD . /tmp/install
WORKDIR /tmp/install

# add dependencies
ADD requirements* /tmp/install/
RUN pip install -r /tmp/install/requirements.txt

# add sources
ADD deeptracy /tmp/install/deeptracy
ADD README.rst /tmp/install
ADD setup.py /tmp/install

# install sources and romove them
WORKDIR /tmp/install
RUN pip install -U .
RUN rm -rf /tmp/install

# add run script
RUN mkdir /opt/deeptracy
WORKDIR /opt/deeptracy
ADD wait-for-it.sh /opt/deeptracy
ADD run.sh /opt/deeptracy
RUN chmod +x /opt/deeptracy/run.sh

Expand Down
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ lint: ## check style with flake8

.PHONY: coverage
coverage: install ## check code coverage
coverage run --source=deeptracy -m unittest discover -s tests/unit
coverage run --source=deeptracy -m unittest discover -s tests/unit
coverage report -m --fail-under 80
coverage xml -o coverage-reports/report.xml

Expand All @@ -73,7 +73,7 @@ docs: ## generate and shows documentation
@make -C docs html

.PHONY: run
run: ## local run the app
run: ## local run the API
./run.sh

.PHONY: demo
Expand All @@ -82,4 +82,9 @@ demo: ## local run the app

.PHONY: behave
behave: ## run behave tests
behave tests/behave/features
behave --no-capture --no-capture-stderr tests/acceptance/features

.PHONY: local_behave
local_behave: ## run behave tests
LOCAL_BEHAVE=True behave --no-capture --no-capture-stderr tests/acceptance/features

12 changes: 10 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ Deeptracy

Deeptracy scans your project dependencies to spot vulnerabilities.

.. image:: https://readthedocs.org/projects/deeptracy/badge/?version=latest
:target: http://deeptracy.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://travis-ci.org/BBVA/deeptracy.svg?branch=master
:target: https://travis-ci.org/BBVA/deeptracy
:alt: Build Status

.. image:: https://raw.githubusercontent.com/BBVA/deeptracy/develop/docs/_static/deeptracy-logo-small.png
:alt: Deeptracy logo
:width: 250 px
:alt: Deeptracy logo
:width: 250 px


+----------------+----------------------------------------------+
Expand Down
9 changes: 4 additions & 5 deletions deeptracy/app.py → deeptracy/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
"""
from celery import Celery
from deeptracy.config import BROKER_URI
from deeptracy.dal.database import db
from deeptracy.redis import redis
from deeptracy.plugins.store import plugin_store
from deeptracy_core.dal.database import db
from deeptracy.plugin_store import plugin_store

db.init_engine() # Init database engine
redis.set_up() # Setup redis client
plugin_store.load_plugins() # Load analyzer plugins
plugin_store.load_plugins() # Load analyzer plugins


# SETUP AND CREATE CELERY APP
celery = Celery('deeptracy',
Expand Down
42 changes: 0 additions & 42 deletions deeptracy/dal/database.py

This file was deleted.

92 changes: 0 additions & 92 deletions deeptracy/dal/models.py

This file was deleted.

25 changes: 0 additions & 25 deletions deeptracy/dal/plugin_manager.py

This file was deleted.

20 changes: 0 additions & 20 deletions deeptracy/dal/project_manager.py

This file was deleted.

43 changes: 0 additions & 43 deletions deeptracy/dal/scan_analysis_manager.py

This file was deleted.

32 changes: 0 additions & 32 deletions deeptracy/dal/scan_manager.py

This file was deleted.

0 comments on commit d9150b3

Please sign in to comment.