Skip to content

Commit c917081

Browse files
authored
Update config.yml
1 parent 4f3ab9b commit c917081

File tree

1 file changed

+39
-4
lines changed

1 file changed

+39
-4
lines changed

.circleci/config.yml

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ jobs:
88
build:
99
docker:
1010
- image: circleci/python:2.7.15
11-
- image: redislabs/redisearch:edge
11+
- image: redislabs/redisearch:latest
1212

1313
working_directory: ~/repo
1414

1515
steps:
1616
- checkout
1717

18-
# Download and cache dependencies
19-
- restore_cache:
18+
- restore_cache: # Download and cache dependencies
2019
keys:
2120
- v1-dependencies-{{ checksum "requirements.txt" }}
2221
# fallback to using the latest cache if no exact match is found
@@ -44,6 +43,42 @@ jobs:
4443
path: test-reports
4544
destination: test-reports
4645

46+
build_nightly:
47+
docker:
48+
- image: circleci/python:2.7.15
49+
- image: redislabs/redisearch:edge
50+
51+
working_directory: ~/repo
52+
53+
steps:
54+
- checkout
55+
56+
- restore_cache: # Download and cache dependencies
57+
keys:
58+
- v1-dependencies-{{ checksum "requirements.txt" }}
59+
# fallback to using the latest cache if no exact match is found
60+
- v1-dependencies-
61+
62+
- run:
63+
name: install dependencies
64+
command: |
65+
virtualenv venv
66+
. venv/bin/activate
67+
pip install -r requirements.txt
68+
69+
- save_cache:
70+
paths:
71+
- ./venv
72+
key: v1-dependencies-{{ checksum "requirements.txt" }}
73+
74+
- run:
75+
name: run tests
76+
command: |
77+
. venv/bin/activate
78+
REDIS_PORT=6379 python test/test.py
79+
80+
# no need for store_artifacts on nightly builds
81+
4782
workflows:
4883
version: 2
4984
commit:
@@ -58,4 +93,4 @@ workflows:
5893
only:
5994
- master
6095
jobs:
61-
- build
96+
- build_nightly

0 commit comments

Comments
 (0)