Skip to content
Snippets Groups Projects
.gitlab-ci.yml 763 B
Newer Older
image: python:3.6

services:
  - mysql:5.7

variables:
  DJANGO_SECRET_KEY: foobarbazbazbarfoo
Luke Murphy's avatar
Luke Murphy committed
  MYSQL_ROOT_PASSWORD: internewshid
  MYSQL_DATABASE: internewshid

before_script:
  - ln -srf internewshid/local_settings.py.gitlab internewshid/local_settings.py
  - echo "SECRET_KEY = '$DJANGO_SECRET_KEY'" >> internewshid/private_settings.py
  - echo "DB_PASSWORD = '$MYSQL_ROOT_PASSWORD'" >> internewshid/private_settings.py
  - apt update && apt install -y default-libmysqlclient-dev python-pymysql python-mysqldb nodejs node-less
  - pip install pipenv && pipenv sync --dev
Luke Murphy's avatar
Luke Murphy committed
gitlab-ci:
    - pipenv run python manage.py check
    - pipenv run pylava -o setup.cfg
    - pipenv run isort -q -rc -c -df -sp setup.cfg
    - pipenv run pytest -v --cov