Skip to content

Commit f8fe81f

Browse files
committed
updating test runners to use pytest marks
1 parent 09f120c commit f8fe81f

File tree

2 files changed

+34
-16
lines changed

2 files changed

+34
-16
lines changed

.travis.yml

+28-6
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,37 @@ language: python
33
matrix:
44
include:
55
- python: 2.7
6-
env: TOXENV=py27
6+
env: TOXENV=py27-local
7+
- python: 2.7
8+
env: TOXENV=py27-integ
9+
- python: 2.7
10+
env: TOXENV=py27-accept
11+
- python: 2.7
12+
env: TOXENV=py27-examples
13+
- python: 3.4
14+
env: TOXENV=py34-local
715
- python: 3.4
8-
env: TOXENV=py34
16+
env: TOXENV=py34-integ
17+
- python: 3.4
18+
env: TOXENV=py34-accept
19+
- python: 3.4
20+
env: TOXENV=py34-examples
21+
- python: 3.5
22+
env: TOXENV=py35-local
923
- python: 3.5
10-
env: TOXENV=py35
24+
env: TOXENV=py35-integ
25+
- python: 3.5
26+
env: TOXENV=py35-accept
27+
- python: 3.5
28+
env: TOXENV=py35-examples
29+
- python: 3.6
30+
env: TOXENV=py36-local
1131
- python: 3.6
12-
env: TOXENV=py36
32+
env: TOXENV=py36-integ
33+
- python: 3.6
34+
env: TOXENV=py36-accept
35+
- python: 3.6
36+
env: TOXENV=py36-examples
1337
- python: 3.6
1438
env: TOXENV=bandit
1539
- python: 3.6
@@ -27,8 +51,6 @@ matrix:
2751
env: TOXENV=flake8-tests
2852
- python: 3.6
2953
env: TOXENV=pylint-tests
30-
- python: 3.6
31-
env: TOXENV=examples
3254
- python: 3.6
3355
env: TOXENV=flake8-examples
3456
- python: 3.6

tox.ini

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
[tox]
22
envlist =
3-
py{27,34,35,36},
3+
py{27,34,35,36}-{local,integ,accept,examples},
44
bandit, doc8, readme, docs,
55
flake8, pylint,
66
flake8-tests, pylint-tests,
7-
examples,
87
flake8-examples, pylint-examples
98

109
# Additional test environments:
@@ -21,12 +20,7 @@ envlist =
2120
# release :: Builds dist files and uploads to pypi pypirc profile.
2221

2322
[testenv]
24-
# _TEST_CONTROL :
25-
# _AWS_KMS_KEY_ID :
26-
# AWS_ACCESS/SECRET/TOKEN :
2723
passenv =
28-
# Enables or disables integration tests ('RUN' enables)
29-
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_CONTROL \
3024
# Identifies AWS KMS key id to use in integration tests
3125
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID \
3226
# Pass through AWS credentials
@@ -39,9 +33,11 @@ deps =
3933
pytest-mock
4034
coverage
4135
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}
4541

4642
# Examples
4743
[testenv:examples]

0 commit comments

Comments
 (0)