-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathconfig.yml
82 lines (81 loc) · 2.2 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: 2
workflows:
version: 2
test:
jobs:
- test-2.7
- test-3.3
- test-3.4
- test-3.5
- test-3.6
- test-3.7
test-template: &test-template
steps:
- checkout
- run:
name: install requirements
command: |
sudo pip install --upgrade pip setuptools;
sudo pip install -r test-requirements.txt;
if [[ "$CIRCLE_JOB != test-3.3" ]] && [[ "$CIRCLE_JOB" != "test-3.4" ]]; then
sudo pip install -r consul-requirements.txt;
fi;
sudo python setup.py install;
pip freeze
- run:
name: run tests
command: |
mkdir test-reports;
if [[ "$CIRCLE_JOB" == "test-2.7" ]]; then
pytest -s --cov=ldclient --junitxml=test-reports/junit.xml testing;
sh -c '[ -n "${CODECLIMATE_REPO_TOKEN+1}" ] && codeclimate-test-reporter || echo "No CODECLIMATE_REPO_TOKEN value is set; not publishing coverage report"';
else
pytest -s --junitxml=test-reports/junit.xml testing;
fi
- store_test_results:
path: test-reports
- store_artifacts:
path: test-reports
jobs:
test-2.7:
<<: *test-template
docker:
- image: circleci/python:2.7-jessie
- image: redis
- image: amazon/dynamodb-local
- image: consul
test-3.3:
<<: *test-template
docker:
- image: circleci/python:3.3-jessie
- image: redis
- image: amazon/dynamodb-local
# python-consul doesn't support Python 3.3
test-3.4:
<<: *test-template
docker:
- image: circleci/python:3.4-jessie
- image: redis
- image: amazon/dynamodb-local
# python-consul doesn't support Python 3.4
test-3.5:
<<: *test-template
docker:
- image: circleci/python:3.5-jessie
- image: redis
- image: amazon/dynamodb-local
- image: consul
test-3.6:
<<: *test-template
docker:
- image: circleci/python:3.6-jessie
- image: redis
- image: amazon/dynamodb-local
- image: consul
test-3.7:
<<: *test-template
docker:
- image: circleci/python:3.7-stretch
- image: redis
- image: amazon/dynamodb-local
- image: consul