Commit 199a139d authored by Michael Lundquist's avatar Michael Lundquist

Reverting the .gitlab-ci.yml back to the state master was in.

parent c781ab61
# .gitlab-ci.yml
image: docker
services:
- docker:dind
build:
script:
- apk add --no-cache py-pip python-dev libffi-dev openssl-dev gcc libc-dev make
- pip install docker-compose
- docker-compose up -d
- mysql:5.7
variables:
MYSQL_DATABASE: wopen
MYSQL_ROOT_PASSWORD: root
types:
- test
# before_script:
# - apt-get update -qy
# - apt-get upgrade -qy
# - apt-get install -qy software-properties-common
# - apt-get update -qy
# - apt-get upgrade -qy
# - add-apt-repository --yes 'deb http://archive.ubuntu.com/ubuntu trusty universe'
# - apt-get update -qy
# - apt-get upgrade -qy
# - apt-get install -y mysql-client default-libmysqlclient-dev python-mysqldb
# gdal-bin libproj-dev proj-data proj-bin binutils
# - cd whats-open/
# - pip install pipenv
# - pipenv install --system --deploy
# - export WOPEN_SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9"
# | fold -w 60 | head -n1 2>/dev/null)
# - export WOPEN_EMAIL_DOMAIN="@masonlive.gmu.edu"
# - export WOPEN_DB_NAME="wopen"
# - export WOPEN_DB_USER="root"
# - export WOPEN_DB_PASSWORD="root"
# - export WOPEN_DB_HOST="mysql"
# - export WOPEN_DB_PORT=3306
# - export WOPEN_SUPERUSER=admin
# - export WOPEN_ENV=dev
# - python manage.py makemigrations
# - python manage.py makemigrations api
# - python manage.py migrate
# - echo "from django.contrib.auth import get_user_model; User =
# get_user_model(); User.objects.create_superuser('root',
# 'root@srct.gmu.edu', 'root') " | python manage.py shell
before_script:
- apt-get update -qy
- apt-get install -y mysql-client default-libmysqlclient-dev python-mysqldb
gdal-bin libproj-dev proj-data proj-bin binutils
- cd whats-open/
- pip install pipenv
- pipenv install --system --deploy
- export WOPEN_SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9"
| fold -w 60 | head -n1 2>/dev/null)
- export WOPEN_EMAIL_DOMAIN="@masonlive.gmu.edu"
- export WOPEN_DB_NAME="wopen"
- export WOPEN_DB_USER="root"
- export WOPEN_DB_PASSWORD="root"
- export WOPEN_DB_HOST="mysql"
- export WOPEN_DB_PORT=3306
- export WOPEN_SUPERUSER=admin
- export WOPEN_ENV=dev
- python manage.py makemigrations
- python manage.py makemigrations api
- python manage.py migrate
- echo "from django.contrib.auth import get_user_model; User =
get_user_model(); User.objects.create_superuser('root',
'root@srct.gmu.edu', 'root') " | python manage.py shell
# whats-open-py3.7:
# image: library/python:3.7
# type: test
# script:
# - echo "Done 😄"
whats-open-py3.7:
image: library/python:3.7
type: test
script:
- echo "Done 😄"
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