mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
Add my.conf file do mysql test
This commit is contained in:
parent
83d643342e
commit
c74fa3f725
3 changed files with 11 additions and 11 deletions
17
.travis.yml
17
.travis.yml
|
|
@ -17,17 +17,16 @@ env:
|
|||
before_install:
|
||||
|
||||
# - psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;"
|
||||
- psql -U postgres -c "CREATE DATABASE evennia;"
|
||||
- psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
|
||||
- psql -U postgres -c "ALTER USER evennia CREATEDB;"
|
||||
- mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4;"
|
||||
- mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||
- mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||
- if [[ $TESTING_DB == postgresql ]]; psql -U postgres -c "CREATE DATABASE evennia;" fi
|
||||
- if [[ $TESTING_DB == postgresql ]]; psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';" fi
|
||||
- if [[ $TESTING_DB == postgresql ]]; psql -U postgres -c "ALTER USER evennia CREATEDB;" fi
|
||||
- if [[ $TESTING_DB == mysql ]]; then mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4;" fi
|
||||
- if [[ $TESTING_DB == mysql ]]; then mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';" fi
|
||||
- if [[ $TESTING_DB == mysql ]]; mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';" fi
|
||||
|
||||
install:
|
||||
- pip install psycopg2-binary
|
||||
- pip install mysqlclient
|
||||
- pip install PyMySQL
|
||||
- if [[ $TESTING_DB == postgresql ]]; pip install psycopg2-binary fi
|
||||
- if [[ $TESTING_DB == mysql ]]; pip install mysqlclient fi
|
||||
- pip install coveralls
|
||||
- pip install -e .
|
||||
|
||||
|
|
|
|||
1
.travis/my.conf
Normal file
1
.travis/my.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
init_connect='SET collation_connection = utf8_general_ci; SET NAMES utf8;'
|
||||
|
|
@ -47,12 +47,12 @@ DATABASES = {
|
|||
'HOST': 'localhost',
|
||||
'PORT': '', # use default port
|
||||
'OPTIONS': {
|
||||
'init_command': 'SET collation_connection = utf8_general_ci'
|
||||
'read_default_file': '.travis/my.conf'
|
||||
},
|
||||
'TEST': {
|
||||
'NAME': 'default',
|
||||
'OPTIONS': {
|
||||
'init_command': 'SET collation_connection = utf8_general_ci'
|
||||
'read_default_file': '.travis/my.conf'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue