Tweak conditional imports

This commit is contained in:
Griatch 2019-03-21 09:42:04 +01:00
parent 2f07f40de8
commit 85b41dde88

View file

@ -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 .