forked from dropbox/sqlalchemy-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (43 loc) · 1.1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: python
# cache package wheels (1 cache per python version)
cache: pip
# newer python versions are available only on xenial (while some older only on trusty) Ubuntu distribution
dist: xenial
sudo: required
jobs:
include:
- name: "run test suite with python 3.6"
python: 3.6
script: |
set -e
pytest
- name: "run test suite with python 3.7"
python: 3.7
script: |
set -e
pytest
- name: "run typecheck on stubs"
python: 3.6
script: |
set -e
mkdir tmpd
cp -r sqlalchemy-stubs tmpd/sqlalchemy
cd tmpd
python3 -m mypy -p sqlalchemy
- name: "run flake8 on stubs"
python: 3.6
script: |
flake8 sqlalchemy-stubs
- name: "run typecheck on plugin"
python: 3.6
script: |
set -e
MYPYPATH=external/mypy python3 -m mypy --disallow-untyped-defs sqlmypy.py
before_install: |
# Upgrade pip, setuptools, and wheel
pip install -U pip setuptools wheel
install: |
pip install -r external/mypy/test-requirements.txt
pip install -U .
python2 -m pip install --user -U .
export PYTHONPATH=`pwd`/external/mypy