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
John James
whats-open
Commits
1bd4d1bd
Commit
1bd4d1bd
authored
Aug 17, 2018
by
David Haynes
🙆
Browse files
Pray to the CI gods this works
- update packages
parent
dc0512a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
1bd4d1bd
...
...
@@ -10,10 +10,12 @@ types:
before_script
:
-
apt-get update -qy
-
apt-get install -y mysql-client libmysqlclient-dev python-mysqldb libgdal1h libproj-dev proj-data proj-bin
-
apt-get install -y mysql-client default-libmysqlclient-dev python-mysqldb
gdal-bin libproj-dev proj-data proj-bin binutils
-
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)
-
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"
...
...
@@ -24,7 +26,9 @@ before_script:
-
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
-
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.5
:
image
:
library/python:3.5
...
...
@@ -37,5 +41,7 @@ whats-open-py3.6:
type
:
test
script
:
# - if pip list --outdated --format=legacy | grep "Latest" | wc -l > 0; then echo "Please update your dependecies!" && pip list --outdated --format=legacy && exit 1; else exit 0; fi
-
coverage run --source=api --omit=*migrations/*,*admin.py,*__init__.py,*.pyc manage.py test
-
coverage html -i && grep pc_cov htmlcov/index.html | egrep -o "[0-9]+\%" | awk '{ print "covered " $1;}'
-
coverage run --source=api
--omit=*migrations/*,*admin.py,*__init__.py,*.pyc manage.py test
-
coverage html -i && grep pc_cov htmlcov/index.html | egrep -o "[0-9]+\%"
| awk '{ print "covered " $1;}'
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