File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Python CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-python/ for more details
4
+ #
5
+ version : 2
6
+ jobs :
7
+ build :
8
+ docker :
9
+ - image : circleci/python:3.6.1
10
+
11
+ - image : redislabs/rejson:edge
12
+ port : 6379:6379
13
+
14
+ working_directory : ~/repo
15
+
16
+ steps :
17
+ - checkout
18
+
19
+ # Download and cache dependencies
20
+ - restore_cache :
21
+ keys :
22
+ - v1-dependencies-{{ checksum "requirements.txt" }}
23
+ # fallback to using the latest cache if no exact match is found
24
+ - v1-dependencies-
25
+
26
+ - run :
27
+ name : install dependencies
28
+ command : |
29
+ python -m venv venv
30
+ . venv/bin/activate
31
+ pip install -r requirements.txt
32
+ pip install codecov
33
+
34
+ - save_cache :
35
+ paths :
36
+ - ./venv
37
+ key : v1-dependencies-{{ checksum "requirements.txt" }}
38
+
39
+ - run :
40
+ name : run tests
41
+ command : |
42
+ . venv/bin/activate
43
+ coverage run tests/test_rejson.py
44
+ codecov
45
+
46
+ # - store_artifacts:
47
+ # path: test-reports
48
+ # destination: test-reports
49
+
50
+ workflows :
51
+ version : 2
52
+ commit :
53
+ jobs :
54
+ - build
55
+ nightly :
56
+ triggers :
57
+ - schedule :
58
+ cron : " 0 0 * * *"
59
+ filters :
60
+ branches :
61
+ only :
62
+ - master
63
+ jobs :
64
+ - build
Original file line number Diff line number Diff line change 5
5
! .travis.yml
6
6
! ** /* .py
7
7
! ** /* .md
8
+ ! .circleci /**
8
9
9
10
.env
10
11
.vscode
You can’t perform that action at this time.
0 commit comments