.gitlab-ci.yml 612 Bytes
Newer Older
Thom Wiggers's avatar
Thom Wiggers committed
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
pep8:
  image: python:3.4
  before_script:
    - export PIP_CACHE_DIR="pip-cache"
    - pip install tox
  script:
    - tox -e flake8

.djangotest: &djangotest
  before_script:
    - export PIP_CACHE_DIR="pip-cache"
    - mkdir -p pip-cache
    - git log -1
    - pip install tox
  script:
    - tox -e $PYTHON_VERSION
  services:
    - mysql:latest

python34:
  <<: *djangotest
  image: python:3.4
  variables:
    PYTHON_VERSION: py34

python35:
  <<: *djangotest
  image: python:3.5
  variables:
    PYTHON_VERSION: py35

cache:
  key: "$CI_BUILD_REF_NAME"
  paths:
    - pip-cache

# vim: set sw=2 ts=2 et :