mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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..."
|
echo "type checking..."
|
||||||
./tools/typecheck-setup.sh
|
./tools/typecheck-setup.sh
|
||||||
./tools/typecheck.sh
|
./tools/typecheck.sh
|
||||||
|
|
||||||
echo "linting..."
|
|
||||||
./tools/lint.sh
|
|
12
.travis.yml
12
.travis.yml
|
@ -1,12 +1,16 @@
|
||||||
dist: xenial
|
dist: xenial
|
||||||
language: python
|
language: python
|
||||||
python:
|
os: linux
|
||||||
- "3.6"
|
install:
|
||||||
install:
|
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
- sudo apt-get install portaudio19-dev
|
- sudo apt-get install portaudio19-dev
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pip install -r requirements.dev
|
- pip install -r requirements.dev
|
||||||
- pip install pyqt5 pyqtwebengine
|
- 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