Unverified Commit f4e53b77 authored by David Haynes's avatar David Haynes 🙆
Browse files

ci: Update to use mysql



- env vars, mysql image, should work
Signed-off-by: David Haynes's avatarDavid Haynes <dhaynes3@gmu.edu>
parent 292f43c3
Pipeline #1210 failed with stage
in 38 seconds
services:
- mysql:latest
variables:
MYSQL_DATABASE: wopen
MYSQL_ROOT_PASSWORD: root
types:
- test
before_script:
- apt-get update -qy
- apt-get install -y mysql-client libmysqlclient-dev python-mysqldb
- pip install -r requirements/test.txt
- cd whats_open/
- export WOPEN_SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9" | fold -w 60 | head -n1 2>/dev/null)
- WOPEN_EMAIL_DOMAIN=@masonlive.gmu.edu
- WOPEN_DB_NAME=wopen
- WOPEN_DB_USER=wopen
- WOPEN_DB_PASSWORD=wopen
- WOPEN_DB_HOST=wopen_db
- WOPEN_DB_PORT=3306
- WOPEN_SUPERUSER=admin
- python manage.py makemigrations
- python manage.py makemigrations website
- python manage.py migrate
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment