1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 16:20:04 +00:00
nyaa/.travis.yml

32 lines
562 B
YAML
Raw Normal View History

2017-05-17 07:53:06 +00:00
language: python
python: "3.6"
2017-05-17 07:53:06 +00:00
2017-06-07 16:25:34 +00:00
dist: trusty
sudo: required
2017-05-17 07:53:06 +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:
- 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
- pip install pytest-cov
2017-06-07 16:25:34 +00:00
- sed "s/mysql:\/\/test:test123@/mysql:\/\/root:@/" config.example.py > config.py
- python db_create.py
- ./db_migrate.py stamp head
script:
- pytest --cov=nyaa --cov-report=term tests
2017-06-07 16:25:34 +00:00
- ./lint.sh --check
2017-05-17 08:20:42 +00:00
notifications:
email: false