From 375c52be088b8e99e7e37bf1f328c2e104776eb8 Mon Sep 17 00:00:00 2001 From: Zarina Sayfullina Date: Mon, 11 Nov 2019 14:37:12 +0300 Subject: [PATCH 1/2] added .travis.yml --- .gitignore | 1 + .travis.yml | 20 ++++++++++++++++++++ md5_light/requirements.txt | 4 +++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index 2cf790e..7b0b20e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.pyc .idea .cache +.coverage .pytest_cache diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3fdf5b0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: python +services: + - docker + +before_install: + # Docker Compose Install + - curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose + - chmod +x docker-compose + - sudo mv docker-compose /usr/local/bin + +install: + - docker-compose build + - docker-compose up -di + +script: docker exec -it md5_light_app py.test --cov=md5_light -vv + +after_script: + - docker-compose stop + - docker-compose rm -f + diff --git a/md5_light/requirements.txt b/md5_light/requirements.txt index 12d3110..47a5583 100644 --- a/md5_light/requirements.txt +++ b/md5_light/requirements.txt @@ -7,12 +7,13 @@ celery==4.2.1 certifi==2018.4.16 chardet==3.0.4 click==6.7 +coverage==4.5.4 decorator==4.3.0 flake8==3.5.0 Flask==1.0.2 flask-marshmallow==0.9.0 flask-pytest==0.0.5 -flask-shell-ipython==0.3.0 +flask-shell-ipython==0.3.1 Flask-SQLAlchemy==2.3.2 idna==2.7 ipython==6.5.0 @@ -38,6 +39,7 @@ pycodestyle==2.3.1 pyflakes==1.6.0 Pygments==2.2.0 pytest==3.7.1 +pytest-cov==2.8.1 pytest-flask==0.10.0 pytest-mock==1.10.0 pytz==2018.5 From d05816a95f80e8166c5bfa3edd72b51b871ef51e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2019 11:38:46 +0000 Subject: [PATCH 2/2] Bump urllib3 from 1.23 to 1.24.2 in /md5_light Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.23 to 1.24.2. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/master/CHANGES.rst) - [Commits](https://github.com/urllib3/urllib3/compare/1.23...1.24.2) Signed-off-by: dependabot[bot] --- md5_light/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/md5_light/requirements.txt b/md5_light/requirements.txt index 47a5583..4c69ada 100644 --- a/md5_light/requirements.txt +++ b/md5_light/requirements.txt @@ -48,7 +48,7 @@ simplegeneric==0.8.1 six==1.11.0 SQLAlchemy==1.2.10 traitlets==4.3.2 -urllib3==1.23 +urllib3==1.24.2 uWSGI==2.0.17.1 vine==1.1.4 wcwidth==0.1.7