Fixing further typos galore
This commit is contained in:
parent
ff8844a1bd
commit
ad77c07211
2 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ before_install:
|
||||||
- psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;"
|
- 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 DATABASE evennia CHARACTER SET utf8;"
|
||||||
- mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
- mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||||
- mysql -u root -e "GRANT ALL PRIVILEGES ON evennia.* TO 'evennia'@'localost' IDENTIFIED BY 'password';"
|
- mysql -u root -e "GRANT ALL ON evennia.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install psycopg2-binary
|
- pip install psycopg2-binary
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ SERVERNAME = "testing_mygame"
|
||||||
# Testing database types
|
# Testing database types
|
||||||
|
|
||||||
if os.environ.get("TESTING_DB") == "postgresql":
|
if os.environ.get("TESTING_DB") == "postgresql":
|
||||||
|
print("Loading PostGreSQL database backend.")
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
|
|
@ -49,6 +50,7 @@ if os.environ.get("TESTING_DB") == "postgresql":
|
||||||
'PORT': '' # use default
|
'PORT': '' # use default
|
||||||
}}
|
}}
|
||||||
elif os.environ.get("TESTING_DB") == "mysql":
|
elif os.environ.get("TESTING_DB") == "mysql":
|
||||||
|
print("Loading MySQL database backend.")
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.mysql',
|
'ENGINE': 'django.db.backends.mysql',
|
||||||
|
|
@ -60,6 +62,7 @@ elif os.environ.get("TESTING_DB") == "mysql":
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else: # default sqlite3, use default settings
|
else: # default sqlite3, use default settings
|
||||||
|
print("Loading SQlite3 database backend (default).")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue