1
1
[tox]
2
2
envlist =
3
- py{27,34,35,36},
3
+ py{27,34,35,36}-{local,integ,accept,examples} ,
4
4
bandit, doc8, readme, docs,
5
5
flake8, pylint,
6
6
flake8-tests, pylint-tests,
7
- examples,
8
7
flake8-examples, pylint-examples
9
8
10
9
# Additional test environments:
@@ -21,12 +20,7 @@ envlist =
21
20
# release :: Builds dist files and uploads to pypi pypirc profile.
22
21
23
22
[testenv]
24
- # _TEST_CONTROL :
25
- # _AWS_KMS_KEY_ID :
26
- # AWS_ACCESS/SECRET/TOKEN :
27
23
passenv =
28
- # Enables or disables integration tests ('RUN' enables)
29
- AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_CONTROL \
30
24
# Identifies AWS KMS key id to use in integration tests
31
25
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID \
32
26
# Pass through AWS credentials
@@ -39,9 +33,11 @@ deps =
39
33
pytest-mock
40
34
coverage
41
35
commands =
42
- coverage run -m pytest \
43
- --cov aws_encryption_sdk \
44
- {posargs}
36
+ local: pytest --cov aws_encryption_sdk -m local -l {posargs}
37
+ integ: pytest --cov aws_encryption_sdk -m integ -l {posargs}
38
+ accept: pytest --cov aws_encryption_sdk -m accept -l {posargs}
39
+ all: pytest --cov aws_encryption_sdk -l {posargs}
40
+ examples: pytest --cov examples/test/ -m examples -l {posargs}
45
41
46
42
# Examples
47
43
[testenv:examples]
0 commit comments