NyaaV3/.travis.yml

31 lines
545 B
YAML
Raw Normal View History

2017-05-17 10:53:06 +03:00
language: python
2025-03-02 15:08:58 +02:00
python: "3.13"
2017-05-17 10:53:06 +03:00
2025-03-02 15:08:58 +02:00
dist: jammy
2017-05-17 10:53:06 +03:00
matrix:
fast_finish: true
2017-05-17 10:53:06 +03:00
cache: pip
2017-06-07 19:25:34 +03:00
services:
mysql
2017-05-17 10:53:06 +03:00
2017-06-07 19:25:34 +03:00
before_install:
2025-03-02 15:08:58 +02:00
- mysql -u root -e 'CREATE DATABASE nyaav3 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
2017-06-07 19:25:34 +03:00
install:
- pip install -r requirements.txt
- pip install pytest-cov
2017-06-07 19:25:34 +03:00
- sed "s/mysql:\/\/test:test123@/mysql:\/\/root:@/" config.example.py > config.py
- ./db_create.py
2017-06-07 19:25:34 +03:00
- ./db_migrate.py stamp head
script:
- ./dev.py test --cov=nyaa --cov-report=term tests
- ./dev.py lint
2017-05-17 11:20:42 +03:00
notifications:
email: false