evennia/.travis.yml
2019-03-20 00:07:14 +01:00

44 lines
1.1 KiB
YAML

dist: xenial
language: python
cache: pip
services:
- postgresql
- mysql
python:
- "3.7"
env:
- TESTING_DB=sqlite3
- TESTING_DB=postgresql
- TESTING_DB=mysql
before_install:
- psql -U postgres -c "CREATE DATABASE evennia;"
- psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
- psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;"
- mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8;"
- mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
- mysql -u root -e "GRANT ALL ON evennia.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
install:
- pip install psycopg2-binary
- pip install mysqlclient
- pip install -e .
- pip install coveralls
before_script:
- evennia --init testing_mygame
- cp .travis/${TESTING_DB}_settings.py testing_mygame/server/conf/settings.py
- head -n 100 testing_mygame/server/conf/settings.py
- cd testing_mygame
- evennia migrate
script:
- coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test evennia
after_success:
- coveralls