mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 15:30:01 +00:00
Add tests to Travis, fix lint script
This commit is contained in:
parent
64098dae49
commit
751378221f
20
.travis.yml
20
.travis.yml
|
@ -2,17 +2,29 @@ language: python
|
||||||
|
|
||||||
python: "3.6"
|
python: "3.6"
|
||||||
|
|
||||||
dist: xenial
|
dist: trusty
|
||||||
sudo: false
|
sudo: required
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
||||||
install: pip install --upgrade pycodestyle
|
services:
|
||||||
|
mysql
|
||||||
|
|
||||||
script: ./lint.sh --check
|
before_install:
|
||||||
|
- mysql -u root -e 'CREATE DATABASE nyaav2 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;'
|
||||||
|
|
||||||
|
install:
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- sed "s/mysql:\/\/test:test123@/mysql:\/\/root:@/" config.example.py > config.py
|
||||||
|
- python db_create.py
|
||||||
|
- ./db_migrate.py stamp head
|
||||||
|
|
||||||
|
script:
|
||||||
|
- python -m pytest tests/
|
||||||
|
- ./lint.sh --check
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
Loading…
Reference in a new issue