2017-07-05 10:41:03 +00:00
|
|
|
# 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
|
|
|
|
|
2017-05-17 07:53:06 +00:00
|
|
|
language: python
|
|
|
|
|
2017-06-01 11:40:33 +00:00
|
|
|
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
|
|
|
|
2017-06-01 11:40:33 +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 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
|
2017-05-17 08:20:42 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|