mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
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:
parent
9c64ce19f7
commit
65c802b69e
3 changed files with 20 additions and 7 deletions
12
.travis.py36.sh
Executable file
12
.travis.py36.sh
Executable 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
|
|
@ -11,6 +11,3 @@ nosetests ./tests
|
|||
echo "type checking..."
|
||||
./tools/typecheck-setup.sh
|
||||
./tools/typecheck.sh
|
||||
|
||||
echo "linting..."
|
||||
./tools/lint.sh
|
10
.travis.yml
10
.travis.yml
|
@ -1,7 +1,6 @@
|
|||
dist: xenial
|
||||
language: python
|
||||
python:
|
||||
- "3.6"
|
||||
os: linux
|
||||
install:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install portaudio19-dev
|
||||
|
@ -9,4 +8,9 @@ install:
|
|||
- 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
|
||||
|
|
Loading…
Reference in a new issue