image: quay.io/python-devs/ci-image

stages:
  - test
  - qa
  - docs
  - codecov
  - deploy

qa:
  script:
    - tox -e qa

tests:
  script:
    - tox -e py27,py35,py36,py37,py38

coverage:
  script:
    - tox -e py27-cov,py35-cov,py36-cov,py37-cov,py38-cov
  artifacts:
    paths:
      - coverage.xml

diffcov:
  script:
    - tox -e py27-diffcov,py35-diffcov,py36-diffcov,py37-diffcov,py38-diffcov

docs:
  script:
    - tox -e docs

codecov:
  stage: codecov
  dependencies:
    - coverage
  script:
    - codecov
  when: on_success

release:
  stage: deploy
  only:
    - /^\d+\.\d+(\.\d+)?([abc]\d*)?$/
  script:
    - tox -e release

image: quay.io/python-devs/ci-image

stages:
  - test
  - qa
  - docs
  - codecov
  - deploy

qa:
  script:
    - tox -e qa

tests:
  script:
    - tox -e py27,py35,py36,py37,py38

coverage:
  script:
    - tox -e py27-cov,py35-cov,py36-cov,py37-cov,py38-cov
  artifacts:
    paths:
      - coverage.xml

diffcov:
  script:
    - tox -e py27-diffcov,py35-diffcov,py36-diffcov,py37-diffcov,py38-diffcov

docs:
  script:
    - tox -e docs

codecov:
  stage: codecov
  dependencies:
    - coverage
  script:
    - codecov
  when: on_success

release:
  stage: deploy
  only:
    - /^v\d+\.\d+(\.\d+)?([abc]\d*)?$/
  script:
    - tox -e release

Update deploy stage to release semver tags
Update deploy stage to release semver tags
