Skip to content
Snippets Groups Projects
.gitlab-ci.yml 712 B
Newer Older
Luke Murphy's avatar
Luke Murphy committed
image: aptivate/pyenv-pythons:latest

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
Luke Murphy's avatar
Luke Murphy committed
  - pip install pipenv aptivate-cli
  - pipenv sync --dev
Luke Murphy's avatar
Luke Murphy committed
gitlab-ci:
Luke Murphy's avatar
Luke Murphy committed
    - apc checks
    - apc pylava
    - apc isort
    - apc pytest -v --cov