Skip to content
Snippets Groups Projects
Commit 82273681 authored by Bethea Davida's avatar Bethea Davida
Browse files

Update .gitlab-ci.yml

parent cda289ca
No related merge requests found
Pipeline #4563 failed
......@@ -6,25 +6,29 @@ image: python:latest
# Only needed when using a docker container to run your tests in.
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
services:
- mysql:latest
- name :mysql:latest
alias : db
# - postgres:latest
variables:
MYSQL_DB: ppl
MYSQL_DATABASE : ppl
MYSQL_ROOT_PASSWORD : ppl2018
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
paths:
- ~/.cache/pip/
- /usr/bin/python2.7
- /usr/local/lib/python2.7/dist-packages/
# This is a basic example for a gem or script which doesn't use
# services such as redis or postgres
before_script:
- python -V # Print out python version for debugging
- python --version # Print out python version for debugging
# Uncomment next line if your Django app needs a JS runtime:
# - apt-get update -q && apt-get install nodejs -yqq
- pip install -r requirements.txt
#- pip install -r requirements.txt
# To get Django tests to work you may need to create a settings file using
# the following DATABASES:
......@@ -41,7 +45,7 @@ before_script:
# and then adding `--settings app.settings.ci` (or similar) to the test command
test:
variables:
DATABASE_URL: "jdbc:mysql://localhost:3306/ppl"
# variables:
# DATABASE_URL: "jdbc:mysql://localhost:3306/ppl"
script:
- python manage.py test
\ No newline at end of file
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