Skip to content

Commit be7c288

Browse files
Shreyas-vgrnikhilym
authored andcommitted
Added tox into travis (#96)
1 parent 0b94d8e commit be7c288

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.travis.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
language: python
22
matrix:
33
include:
4-
- python: '2.7'
5-
- python: '3.6'
6-
- python: '3.7'
4+
- python: 2.7
5+
env:
6+
- TOX_ENV=py27
7+
- python: 3.6
8+
env:
9+
- TOX_ENV=py36
10+
- python: 3.7
11+
env:
12+
- TOX_ENV=py37
713
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
814
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
915
install:
10-
- python scripts/ci/sdk_install
11-
- pip install flake8
12-
- if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then pip install mypy; fi
13-
before_script: flake8 .
14-
script:
15-
- python scripts/ci/run_tests
16-
- if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then mypy --ignore-missing-imports --no-strict-optional ask-sdk/ask_sdk; fi
17-
- if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then mypy --ignore-missing-imports --no-strict-optional ask-sdk-core/ask_sdk_core; fi
18-
- if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then mypy --ignore-missing-imports --no-strict-optional ask-sdk-runtime/ask_sdk_runtime; fi
19-
- if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then mypy --ignore-missing-imports --no-strict-optional ask-sdk-dynamodb-persistence-adapter/ask_sdk_dynamodb; fi
16+
- pip install tox
17+
script: tox -e $TOX_ENV

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ deps =
1717
nose
1818
mock
1919
coverage
20+
py{36,37}: mypy
21+
setenv =
22+
AWS_DEFAULT_REGION = us-west-2
2023
commands =
2124
flake8 .
2225
{toxinidir}/scripts/ci/sdk_install
2326
{toxinidir}/scripts/ci/run_tests
27+
py{36,37}: mypy --ignore-missing-imports --no-strict-optional ask-sdk/ask_sdk
28+
py{36,37}: mypy --ignore-missing-imports --no-strict-optional ask-sdk-core/ask_sdk_core
29+
py{36,37}: mypy --ignore-missing-imports --no-strict-optional ask-sdk-runtime/ask_sdk_runtime
30+
py{36,37}: mypy --ignore-missing-imports --no-strict-optional ask-sdk-dynamodb-persistence-adapter/ask_sdk_dynamodb

0 commit comments

Comments
 (0)