Skip to content

Commit 9a638ca

Browse files
committed
add ci
1 parent 10215ee commit 9a638ca

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.circleci/config.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
# Python CircleCI 2.0 configuration file
3+
#
4+
# Check https://circleci.com/docs/2.0/language-python/ for more details
5+
#
6+
version: 2
7+
jobs:
8+
build:
9+
docker:
10+
- image: circleci/python:3.6.1
11+
- image: redislabs/redisearch:latest
12+
13+
working_directory: ~/repo
14+
15+
steps:
16+
- checkout
17+
18+
# Download and cache dependencies
19+
- restore_cache:
20+
keys:
21+
- v1-dependencies-{{ checksum "requirements.txt" }}
22+
# fallback to using the latest cache if no exact match is found
23+
- v1-dependencies-
24+
25+
- run:
26+
name: install dependencies
27+
command: |
28+
python3 -m venv venv
29+
. venv/bin/activate
30+
pip install -r requirements.txt
31+
32+
- save_cache:
33+
paths:
34+
- ./venv
35+
key: v1-dependencies-{{ checksum "requirements.txt" }}
36+
37+
- run:
38+
name: run tests
39+
command: |
40+
. venv/bin/activate
41+
python manage.py test
42+
43+
- store_artifacts:
44+
path: test-reports
45+
destination: test-reports
46+

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ dist
88
!**/*.py
99
!**/*.csv
1010
!**/*.md
11-
!.cirecleci/config.yml
11+
!.circleci/config.yml
12+

0 commit comments

Comments
 (0)