1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 10:00:01 +00:00
nyaa/.travis.yml
Kfir Hadas 9849a2bc14 Fix Travis (#285)
Reverts Trusty build environment version, because 2017Q2 breaks stuff.
2017-07-05 13:41:03 +03:00

35 lines
686 B
YAML

# https://blog.travis-ci.com/2017-06-21-trusty-updates-2017-Q2-launch
# Reverts Trusty build environment version, because 2017Q2 is broken for OrderedDict.
group: deprecated-2017Q2
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 utf8 COLLATE utf8_bin;'
install:
- pip install -r requirements.txt
- sed "s/mysql:\/\/test:test123@/mysql:\/\/root:@/" config.example.py > config.py
- python db_create.py
- ./db_migrate.py stamp head
script:
- python -m pytest tests/
- ./lint.sh --check
notifications:
email: false