mirror of
https://github.com/evennia/evennia.git
synced 2026-04-18 06:09:06 +02:00
Tweak conditional imports
This commit is contained in:
parent
2f07f40de8
commit
85b41dde88
1 changed files with 8 additions and 8 deletions
16
.travis.yml
16
.travis.yml
|
|
@ -17,16 +17,16 @@ env:
|
||||||
before_install:
|
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;"
|
||||||
- if [[ $TESTING_DB == postgresql ]]; psql -U postgres -c "CREATE DATABASE evennia;" fi
|
- psql -U postgres -c "CREATE DATABASE evennia;"
|
||||||
- if [[ $TESTING_DB == postgresql ]]; psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';" fi
|
- psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
|
||||||
- if [[ $TESTING_DB == postgresql ]]; psql -U postgres -c "ALTER USER evennia CREATEDB;" fi
|
- psql -U postgres -c "ALTER USER evennia CREATEDB;"
|
||||||
- if [[ $TESTING_DB == mysql ]]; then mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4;" fi
|
- if mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4;"
|
||||||
- if [[ $TESTING_DB == mysql ]]; then mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';" fi
|
- mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||||
- if [[ $TESTING_DB == mysql ]]; mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';" fi
|
- mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [[ $TESTING_DB == postgresql ]]; pip install psycopg2-binary fi
|
- if [[ $TESTING_DB == postgresql ]]; then pip install psycopg2-binary fi
|
||||||
- if [[ $TESTING_DB == mysql ]]; pip install mysqlclient fi
|
- if [[ $TESTING_DB == mysql ]]; then pip install mysqlclient fi
|
||||||
- pip install coveralls
|
- pip install coveralls
|
||||||
- pip install -e .
|
- pip install -e .
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue