Skip to content
Snippets Groups Projects
.gitlab-ci.yml 2.9 KiB
Newer Older
  - quality-assurance

alpine-py37-django22:
  stage: test-alpine
  image: python:3.7-alpine
  cache:
    key: "${CI_JOB_NAME}"
    paths:
      - venv/
      - .tox/
  before_script:
    - "[[ -d venv ]] || python -m venv venv"
    - source venv/bin/activate
    - pip install tox
  script: tox -e py37-django22

alpine-py38-django22:
  stage: test-alpine
  image: python:3.8-alpine
  cache:
    key: "${CI_JOB_NAME}"
    paths:
      - venv/
      - .tox/
  before_script:
    - "[[ -d venv ]] || python -m venv venv"
    - source venv/bin/activate
    - pip install tox
  script: tox -e py38-django22

alpine-py39-django22:
  stage: test-alpine
  image: python:3.9-alpine
  cache:
    key: "${CI_JOB_NAME}"
    paths:
      - venv/
      - .tox/
  before_script:
    - "[[ -d venv ]] || python -m venv venv"
    - source venv/bin/activate
    - pip install tox
  script: tox -e py39-django22

ynerant's avatar
ynerant committed
alpine-py39-django32:
  stage: test-alpine
  image: python:3.9-alpine
  cache:
    key: "${CI_JOB_NAME}"
    paths:
      - venv/
      - .tox/
  before_script:
    - "[[ -d venv ]] || python -m venv venv"
    - source venv/bin/activate
    - pip install tox
ynerant's avatar
ynerant committed
  script: tox -e py39-django32
alpine-py310-django32:
  stage: test-alpine
  image: python:3.10-alpine
  cache:
    key: "${CI_JOB_NAME}"
    paths:
      - venv/
      - .tox/
  before_script:
    - "[[ -d venv ]] || python -m venv venv"
    - source venv/bin/activate
    - pip install tox
  script: tox -e py310-django32
alpine-py311-django41:
  stage: test-alpine
  image: python:3.11-alpine
  cache:
    key: "${CI_JOB_NAME}"
    paths:
      - venv/
      - .tox/
  before_script:
    - "[[ -d venv ]] || python -m venv venv"
    - source venv/bin/activate
    - pip install tox
  script: tox -e py311-django41

# Debian Bullseye
py39-django22:
  image: debian:bullseye-slim
  before_script:
    - >
        apt-get update &&
        apt-get install --no-install-recommends -y
        python3-django python3-django-extensions python3-djangorestframework
        python3-docutils python3-pip tox
  script:
    - tox -e py39-django22
  before_script:
    - >
        apt-get update &&
        apt-get install --no-install-recommends -t experimental -y
        python3-django python3-django-extensions python3-djangorestframework
        python3-docutils python3-pip tox
linters:
  stage: quality-assurance
  image: python:3-alpine
  cache:
    key: "${CI_JOB_NAME}"
    paths:
      - venv/
      - .tox/
  before_script:
    - "[[ -d venv ]] || python -m venv venv"
    - source venv/bin/activate
    - pip install tox
ynerant's avatar
ynerant committed
    - apk add --no-cache gettext git
  script: tox -e linters

  # Be nice to new contributors, but please use `tox`
  allow_failure: true