Skip to content

Commit

Permalink
Also only install mypy for cpython
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlees committed Dec 12, 2019
1 parent 3c32243 commit 73656e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ branches:
- master

before_install:
- pip install -U setuptools pip mypy wheel
- pip install -U setuptools pip wheel

install:
- python -V
Expand Down
6 changes: 6 additions & 0 deletions mypy_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@
if sys.implementation.name != "cpython":
sys.exit(0)

# We only want to install if we're cpython too
install_success = run("pip install mypy", shell=True).returncode
if install_success:
print("mypy install failed", file=sys.stderr)
sys.exit(install_success)

sys.exit(run("mypy aiodns", shell=True).returncode)

0 comments on commit 73656e6

Please sign in to comment.