do type checking on 3.7, linting on 3.6

- python 3.6 chokes on the pyqt .pyi files
- need to check unit tests on 3.6 as well, as anki/ must run on 3.6
This commit is contained in:
Damien Elmes 2019-12-16 21:02:03 +10:00
parent 9c64ce19f7
commit 65c802b69e
3 changed files with 20 additions and 7 deletions

12
.travis.py36.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -e
echo "building ui..."
./tools/build_ui.sh
echo "running unit tests..."
nosetests ./tests
echo "linting..."
./tools/lint.sh

View file

@ -11,6 +11,3 @@ nosetests ./tests
echo "type checking..."
./tools/typecheck-setup.sh
./tools/typecheck.sh
echo "linting..."
./tools/lint.sh

View file

@ -1,12 +1,16 @@
dist: xenial
language: python
python:
- "3.6"
install:
os: linux
install:
- sudo apt-get update
- sudo apt-get install portaudio19-dev
- pip install -r requirements.txt
- pip install -r requirements.dev
- pip install pyqt5 pyqtwebengine
script: ./.travis.sh
jobs:
include:
- python: 3.6
script: ./.travis.py36.sh
- python: 3.7
script: ./.travis.py37.sh