forked from dropbox/sqlalchemy-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (56 loc) · 1.42 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
48
49
50
51
52
53
54
55
56
57
58
59
60
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 basic tests with python 3.5.1"
dist: trusty
python: 3.5.1
script: |
set -e
pytest
- 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 test suite with python 3.8"
python: 3.8
script: |
set -e
pytest
- name: "run typecheck on stubs"
python: 3.8
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.8
script: |
flake8 sqlalchemy-stubs
- name: "run typecheck on plugin"
python: 3.8
script: |
set -e
MYPYPATH=external/mypy python3 -m mypy --config-file external/mypy/mypy_self_check.ini sqlmypy.py
before_install: |
# Upgrade pip to the last version that supported python 3.5
pip install -Iv pip==20.3.4
# Upgrade setuptools, and wheel
pip install -U setuptools wheel
install: |
pip install -Ur external/mypy/test-requirements.txt
pip install -U .
python2 -m pip install --user -U .
export PYTHONPATH=`pwd`/external/mypy