Skip to content
Snippets Groups Projects
.gitlab-ci.yml 772 B
Newer Older
image: registry.esss.lu.se/ics-docker/miniconda
variables:
  TWINE_REPOSITORY_URL: https://artifactory.esss.lu.se/artifactory/api/pypi/ics-pypi

stages:
    - test
    - deploy
  stage: test
  image: registry.esss.lu.se/ics-docker/pre-commit
  script:
    - pre-commit run --all-files

pages:
  stage: deploy
  script:
Yngve Levinsen's avatar
Yngve Levinsen committed
  - pip install sphinx sphinxcontrib-blockdiag blockdiag sphinxcontrib-restbuilder numpy
  - python setup.py install
  - sphinx-build -b html -d public/doctrees   doc public
  artifacts:
    paths:
    - public
  only:
  - master
release-pypi:
  tags:
    - docker
  stage: deploy
  image: python:3.7
  before_script:
    - pip install twine
  script:
    - python setup.py check sdist bdist_wheel
    - twine upload dist/*
  only:
    - tags