Skip to content

Commit 9b05758

Browse files
committed
chore: add tests job without ciso8601
1 parent 3927736 commit 9b05758

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.circleci/config.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ commands:
2020
- restore_cache:
2121
name: Restoring Pip Cache
2222
keys:
23-
- &cache-key pip-cache-v8-<< parameters.python-image >>-{{ checksum "requirements.txt" }}-{{ checksum "test-requirements.txt" }}-{{ checksum "extra-requirements.txt" }}
24-
- pip-cache-v8-<< parameters.python-image >>-
23+
- &cache-key pip-cache-v9-<< parameters.python-image >>-{{ checksum "requirements.txt" }}-{{ checksum "test-requirements.txt" }}-{{ checksum "extra-requirements.txt" }}
24+
- pip-cache-v9-<< parameters.python-image >>-
2525
- run:
2626
command: | # use pipenv to install dependencies
2727
sudo pip install pipenv
@@ -48,10 +48,14 @@ jobs:
4848
influxdb-image:
4949
type: string
5050
default: "influxdb:2.0.0-beta"
51+
disable-ciso-8601:
52+
type: boolean
53+
default: false
5154
docker:
5255
- image: << parameters.python-image >>
5356
environment: # environment variables for primary container
5457
PIPENV_VENV_IN_PROJECT: true
58+
DISABLE_CISO_8601: << parameters.disable-ciso-8601 >>
5559
- image: quay.io/influxdb/<< parameters.influxdb-image >>
5660
steps:
5761
- prepare
@@ -69,6 +73,9 @@ workflows:
6973
jobs:
7074
- tests-python:
7175
name: python-3.6
76+
- tests-python:
77+
name: python-3.6-without-ciso8601
78+
disable-ciso-8601: true
7279
- tests-python:
7380
name: python-3.6-nightly
7481
influxdb-image: "influx:nightly"

scripts/ci-test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ python --version
99
pip install -r requirements.txt --user
1010
pip install -r extra-requirements.txt --user
1111
pip install -r test-requirements.txt --user
12-
pip install -r ciso-requirements.txt --user
12+
if [ "$DISABLE_CISO_8601" = true ] ; then
13+
echo "ciso8601 is disabled"
14+
pip install -r ciso-requirements.txt --user
15+
fi
1316
pip install pytest pytest-cov --user
1417
pip install twine --user
1518
python setup.py sdist bdist_wheel

0 commit comments

Comments
 (0)