Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael R Lundquist
whats-open
Commits
199a139d
Commit
199a139d
authored
Aug 03, 2019
by
Michael Lundquist
Browse files
Reverting the .gitlab-ci.yml back to the state master was in.
parent
c781ab61
Pipeline
#4535
failed with stage
in 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
199a139d
# .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 😄"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment