mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
lint in travis
This commit is contained in:
parent
126cbd6534
commit
8a2a4d827f
3 changed files with 17 additions and 2 deletions
12
.travis.sh
Executable file
12
.travis.sh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "running unit tests..."
|
||||||
|
nosetests ./tests
|
||||||
|
|
||||||
|
echo "building ui..."
|
||||||
|
./tools/build_ui.sh
|
||||||
|
|
||||||
|
echo "linting..."
|
||||||
|
./tools/lint.sh
|
|
@ -1,3 +1,4 @@
|
||||||
|
dist: xenial
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "3.6"
|
- "3.6"
|
||||||
|
@ -5,6 +6,6 @@ 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 nose
|
- pip install nose pylint pyqt5 pyqtwebengine
|
||||||
|
|
||||||
script: nosetests ./tests
|
script: ./.travis.sh
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
# should be on the path.
|
# should be on the path.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ ! -d "designer" ]
|
if [ ! -d "designer" ]
|
||||||
then
|
then
|
||||||
echo "Please run this from the project root"
|
echo "Please run this from the project root"
|
||||||
|
|
Loading…
Reference in a new issue