Hi to all. I have an unexpected problem after git push to my pull-request.
I have installed mysqlclient ins step: - pip install -r $BITBUCKET_CLONE_DIR/requirements.txt!
On step - python manage.py makemigrations I got next error:
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: libmariadbclient.so.18: cannot open shared object file: No such file or directory.Did you install mysqlclient or MySQL-python?
my bitbucket.pipeline file
image: python:3.6
pipelines:
pull-requests:
'**':
- step:
caches:
- pip
script:
- pip install -r $BITBUCKET_CLONE_DIR/requirements.txt
- export DJANGO_SETTINGS_MODULE=myproject.settings.tests
- cd $BITBUCKET_CLONE_DIR/src
- flake8
- python manage.py makemigrations
- python manage.py migrate
- coverage run --source='.' manage.py test
- coverage report -m
services:
- mysql
- mongo
- redis
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: my_db
MYSQL_ROOT_PASSWORD: root
mongo:
image: mongo
redis:
image: redis
Everything works fine on my local computer!
Can someone help me with this problem?