mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-11-01 00:05:55 +00:00
8a4793ffb0
* Update Travis to Trusty Q2 (they fixed the issue it had before, it works now) * Fix charset in database creation on Travis to use `utf8mb4_unicode_ci`.
32 lines
562 B
YAML
32 lines
562 B
YAML
language: python
|
|
|
|
python: "3.6"
|
|
|
|
dist: trusty
|
|
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
|
|
- python db_create.py
|
|
- ./db_migrate.py stamp head
|
|
|
|
script:
|
|
- pytest --cov=nyaa --cov-report=term tests
|
|
- ./lint.sh --check
|
|
|
|
notifications:
|
|
email: false
|