You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
nyaa/.travis.yml

31 lines
560 B

language: python
python: "3.7"
dist: xenial
sudo: required
matrix:
fast_finish: true
cache: pip
services:
mysql
before_install:
- mysql -u root -e 'CREATE DATABASE nyaav2 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
install:
- pip install -r requirements.txt
- pip install pytest-cov
- sed "s/mysql:\/\/test:test123@/mysql:\/\/root:@/" config.example.py > config.py
- ./db_create.py
- ./db_migrate.py stamp head
script:
- ./dev.py test --cov=nyaa --cov-report=term tests
- ./dev.py lint
notifications:
email: false