Move db install to later
This commit is contained in:
parent
7ae598cedb
commit
7863b99dfb
1 changed files with 2 additions and 4 deletions
|
|
@ -14,10 +14,6 @@ env:
|
||||||
- TESTING_DB=postgresql
|
- TESTING_DB=postgresql
|
||||||
- TESTING_DB=mysql
|
- TESTING_DB=mysql
|
||||||
|
|
||||||
before_install:
|
|
||||||
- psql -c "CREATE USER evennia WITH PASSWORD 'password'; CREATE DATABASE evennia; GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;'"
|
|
||||||
- mysql -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password'; CREATE DATABASE evennia; ALTER DATABASE `evennia` CHARACTER SET utf8; GRANT ALL PRIVILEGES ON evennia.* TO 'evennia'@'localost'; FLUSH PRIVILEGES;" -U postgres
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install psycopg2-binary
|
- pip install psycopg2-binary
|
||||||
- pip install mysqlclient
|
- pip install mysqlclient
|
||||||
|
|
@ -25,6 +21,8 @@ install:
|
||||||
- pip install coveralls
|
- pip install coveralls
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password'; CREATE DATABASE evennia; GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;'"
|
||||||
|
- mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password'; CREATE DATABASE evennia; ALTER DATABASE `evennia` CHARACTER SET utf8; GRANT ALL PRIVILEGES ON evennia.* TO 'evennia'@'localost'; FLUSH PRIVILEGES;" -U postgres
|
||||||
- python -VV
|
- python -VV
|
||||||
- evennia --init testing_mygame
|
- evennia --init testing_mygame
|
||||||
- cp .travis/testing_settings.py testing_mygame/server/conf/settings.py
|
- cp .travis/testing_settings.py testing_mygame/server/conf/settings.py
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue