Skip to content

Commit 654d069

Browse files
author
Marcos Pereira
committed
Added CircleCI.
1 parent 46cf0ae commit 654d069

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.circleci/config.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/python:3.6.1
6+
7+
working_directory: ~/repo
8+
9+
steps:
10+
- checkout
11+
- restore_cache:
12+
keys:
13+
- v1-dependencies-{{ checksum "requirements.txt" }}
14+
# fallback to using the latest cache if no exact match is found
15+
- v1-dependencies-
16+
17+
- run:
18+
name: install dependencies
19+
command: |
20+
python3 -m venv venv
21+
. venv/bin/activate
22+
pip install -r requirements.txt
23+
24+
- save_cache:
25+
paths:
26+
- ./venv
27+
key: v1-dependencies-{{ checksum "requirements.txt" }}
28+
29+
- run:
30+
name: run tests
31+
command: |
32+
. venv/bin/activate
33+
python3 -m unittest discover
34+
35+
- store_artifacts:
36+
path: test-reports
37+
destination: test-reports

Pipfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ verify_ssl = true
44
name = "pypi"
55

66
[packages]
7-
requests = ">=2.18.4"
7+
requests = ">=2.20.0"
88
httmock = ">=1.2.5"
99
python-jose = ">=1.4.0"
1010

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
requests>=2.18.4
1+
requests>=2.20.0
22
httmock>=1.2.5
33
python-jose>=1.4.0
44
twine==1.13.0

0 commit comments

Comments
 (0)