2017-05-17 07:53:06 +00:00
|
|
|
language: python
|
|
|
|
|
2019-08-11 01:39:53 +00:00
|
|
|
python: "3.7"
|
2017-05-17 07:53:06 +00:00
|
|
|
|
2019-08-11 01:39:53 +00:00
|
|
|
dist: xenial
|
2017-06-07 16:25:34 +00:00
|
|
|
sudo: required
|
2017-05-17 07:53:06 +00:00
|
|
|
|
2017-06-01 11:40:33 +00:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
2017-05-17 07:53:06 +00:00
|
|
|
cache: pip
|
|
|
|
|
2017-06-07 16:25:34 +00:00
|
|
|
services:
|
|
|
|
mysql
|
2017-05-17 07:53:06 +00:00
|
|
|
|
2017-06-07 16:25:34 +00:00
|
|
|
before_install:
|
2017-07-29 00:24:05 +00:00
|
|
|
- mysql -u root -e 'CREATE DATABASE nyaav2 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
|
2017-06-07 16:25:34 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- pip install -r requirements.txt
|
2017-07-07 21:14:37 +00:00
|
|
|
- pip install pytest-cov
|
2017-06-07 16:25:34 +00:00
|
|
|
- sed "s/mysql:\/\/test:test123@/mysql:\/\/root:@/" config.example.py > config.py
|
2017-08-05 21:04:38 +00:00
|
|
|
- ./db_create.py
|
2017-06-07 16:25:34 +00:00
|
|
|
- ./db_migrate.py stamp head
|
|
|
|
|
|
|
|
script:
|
2017-08-05 21:04:38 +00:00
|
|
|
- ./dev.py test --cov=nyaa --cov-report=term tests
|
|
|
|
- ./dev.py lint
|
2017-05-17 08:20:42 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|