Skip to content

Commit 80836e4

Browse files
committed
Added mypy to the travis tests
1 parent 6a3f900 commit 80836e4

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.travis.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,6 @@ sudo: false
33
python:
44
- 2.7
55
# - "pypy-5.3.1"
6-
before_install:
7-
- |
8-
if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
9-
export PYENV_ROOT="$HOME/.pyenv"
10-
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
11-
cd "$PYENV_ROOT" && git pull
12-
else
13-
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
14-
fi
15-
export PYPY_VERSION="4.0.1"
16-
"$PYENV_ROOT/bin/pyenv" install "pypy-$PYPY_VERSION"
17-
virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
18-
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
19-
fi
206
install:
217
- pip install -e .[test]
228
- pip install flake8
@@ -33,10 +19,12 @@ matrix:
3319
script:
3420
- py.test --cov=graphql graphql tests tests_py35
3521
- python: '3.6'
36-
after_install:
37-
- pip install pytest-asyncio
22+
install:
23+
- pip install -e .[test]
24+
- pip install pytest-asyncio mypy
3825
script:
3926
- py.test --cov=graphql graphql tests tests_py35
27+
- mypy graphql --ignore-missing-imports
4028
- python: '2.7'
4129

4230
deploy:

0 commit comments

Comments
 (0)