.gitlab-ci.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. image: python:3.11
  2. variables:
  3. DOCKER_DRIVER: overlay2
  4. DOCKER_TLS_CERTDIR: "/certs"
  5. DOCKER_HOST: tcp://docker:2376
  6. DRAWIO_VERSION: "21.2.8"
  7. stages:
  8. - build
  9. - test
  10. - release
  11. deploy-docs:
  12. image: python:3.11
  13. stage: release
  14. before_script:
  15. - export DISPLAY=:0
  16. - apt-get update && apt-get -y install wget curl xvfb nano libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 xdg-utils libatspi2.0-0 libappindicator3-1 libsecret-1-0 libgbm1 desktop-file-utils libasound2 && rm -rf /var/lib/apt/lists/*
  17. - wget https://github.com/jgraph/drawio-desktop/releases/download/v$DRAWIO_VERSION/drawio-amd64-$DRAWIO_VERSION.deb
  18. - dpkg -i drawio-amd64-$DRAWIO_VERSION.deb
  19. - rm drawio-amd64-$DRAWIO_VERSION.deb
  20. - python -V
  21. - echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi"
  22. script:
  23. - export DISPLAY=:0
  24. - pip install -U -r requirements.txt
  25. - python3 -m sphinx docs public
  26. artifacts:
  27. paths:
  28. - public
  29. rules:
  30. - if: $CI_COMMIT_TAG
  31. - if: $CI_PIPELINE_SOURCE == "push" || $CI_COMMIT_BRANCH == "dev"
  32. when: manual
  33. allow_failure: true