File tree Expand file tree Collapse file tree 1 file changed +39
-4
lines changed
Expand file tree Collapse file tree 1 file changed +39
-4
lines changed Original file line number Diff line number Diff line change 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
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+
4782workflows :
4883 version : 2
4984 commit :
@@ -58,4 +93,4 @@ workflows:
5893 only :
5994 - master
6095 jobs :
61- - build
96+ - build_nightly
You can’t perform that action at this time.
0 commit comments