Skip to content
Snippets Groups Projects
.gitlab-ci.yml 833 B
Newer Older
  - style
  - test

image: python:2

services:
  - mysql:5.7

variables:
  MYSQL_DATABASE: internewshid
  MYSQL_ROOT_PASSWORD: passw0rd
  DJANGO_SECRET_KEY: 'nde2wr2r)#a*%n$!(zl8#3v_o!sp=hd9vbv%*e6atgr0dp=b(7'

before_script:
  - pip install -U pipenv setuptools 'pip<=18.0' # https://github.com/pypa/pipenv/issues/2924
  - 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
  - pipenv sync --dev
  - apt update && apt install -y node-less
  stage: checks
    - make checks
style:
  stage: style
Luke Murphy's avatar
Luke Murphy committed
  allow_failure: true
    - make style
  stage: test
  script:
    - make test