Browse Source
Merge pull request #14 from marcospereirampj/feature/security
Added CircleCI.
hotfix/merge
Marcos Pereira
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
39 additions and
2 deletions
-
.circleci/config.yml
-
Pipfile
-
requirements.txt
|
|
@ -0,0 +1,37 @@ |
|
|
|
version: 2 |
|
|
|
jobs: |
|
|
|
build: |
|
|
|
docker: |
|
|
|
- image: circleci/python:3.6.1 |
|
|
|
|
|
|
|
working_directory: ~/repo |
|
|
|
|
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
keys: |
|
|
|
- v1-dependencies-{{ checksum "requirements.txt" }} |
|
|
|
# fallback to using the latest cache if no exact match is found |
|
|
|
- v1-dependencies- |
|
|
|
|
|
|
|
- run: |
|
|
|
name: install dependencies |
|
|
|
command: | |
|
|
|
python3 -m venv venv |
|
|
|
. venv/bin/activate |
|
|
|
pip install -r requirements.txt |
|
|
|
|
|
|
|
- save_cache: |
|
|
|
paths: |
|
|
|
- ./venv |
|
|
|
key: v1-dependencies-{{ checksum "requirements.txt" }} |
|
|
|
|
|
|
|
- run: |
|
|
|
name: run tests |
|
|
|
command: | |
|
|
|
. venv/bin/activate |
|
|
|
python3 -m unittest discover |
|
|
|
|
|
|
|
- store_artifacts: |
|
|
|
path: test-reports |
|
|
|
destination: test-reports |
|
|
@ -4,7 +4,7 @@ verify_ssl = true |
|
|
|
name = "pypi" |
|
|
|
|
|
|
|
[packages] |
|
|
|
requests = ">=2.18.4" |
|
|
|
requests = ">=2.20.0" |
|
|
|
httmock = ">=1.2.5" |
|
|
|
python-jose = ">=1.4.0" |
|
|
|
|
|
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
requests>=2.18.4 |
|
|
|
requests>=2.20.0 |
|
|
|
httmock>=1.2.5 |
|
|
|
python-jose>=1.4.0 |
|
|
|
twine==1.13.0 |