Commit 76270332 authored by David Haynes's avatar David Haynes
Browse files

Break up gitlab-ci between building and testing

- yess it's working
parent 8b8c0b38
...@@ -3,11 +3,16 @@ image: ubuntu:14.04 ...@@ -3,11 +3,16 @@ image: ubuntu:14.04
services: services:
- mysql:latest - mysql:latest
types:
- build
- test
variables: variables:
MYSQL_DATABASE: go MYSQL_DATABASE: go
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
test: build_Go:
type: build
script: script:
- apt-get update -qy - apt-get update -qy
- apt-get install -y python-dev python-pip python-pip libldap2-dev mysql-client libmysqlclient-dev python-mysqldb libsasl2-dev libjpeg-dev git - apt-get install -y python-dev python-pip python-pip libldap2-dev mysql-client libmysqlclient-dev python-mysqldb libsasl2-dev libjpeg-dev git
...@@ -26,4 +31,8 @@ test: ...@@ -26,4 +31,8 @@ test:
- python manage.py makemigrations go - python manage.py makemigrations go
- python manage.py migrate - 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
test_Go:
type: test
script:
- python manage.py test - python manage.py test
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