Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
stages:
- django-checks
- imports
- style
- documentation
- 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:
- virtualenv --python=python2.7 .ve
- source .ve/bin/activate
checks:
stage: django-checks
script:
- python manage.py check
- python manage.py makemigrations --check
isort:
stage: imports
script:
- |
isort internewshid \
--recursive \
--check-only \
--diff \
--settings-path=setup.cfg
pylama:
stage: style
script:
- pylava internewshid
pytest:
stage: test
script:
- pytest -v