.gitlab-ci.yml 497 Bytes
Newer Older
1 2 3
image: python:3.6-alpine

stages:
Dan Keder's avatar
Dan Keder committed
4
  - test
5 6
  - deploy

Dan Keder's avatar
Dan Keder committed
7 8
black:
  stage: test
9
  image: kiwicom/black:19.10b0
Dan Keder's avatar
Dan Keder committed
10 11
  script:
    - black --check --line-length 120 .
12
  allow_failure: true
13 14 15 16 17 18 19

deploy_production:
  stage: deploy
  variables:
    TWINE_USERNAME: $PRODUCTION_USERNAME
    TWINE_PASSWORD: $PRODUCTION_PASSWORD
  script:
Michal Lukac's avatar
Michal Lukac committed
20
    - apk update
Michal Lukac's avatar
Michal Lukac committed
21
    - apk add gcc musl-dev libffi-dev libressl-dev
Dan Keder's avatar
Dan Keder committed
22 23
    - pip install twine
    - python setup.py sdist bdist_wheel
24 25
    - twine upload dist/*
  only:
Dan Keder's avatar
Dan Keder committed
26
    - tags