Debian Codegraph @

.gitlab-ci.yml

raw symbols SCIP
1 # This file is a template, and might need editing before it works on your project.
2 # Official language image. Look for the different tagged releases at:
3 # https://hub.docker.com/r/library/python/tags/
4
5 stages:
6 - test
7 - build
8 - deploy
9
10 # Change pip's cache directory to be inside the project directory since we can
11 # only cache local items.
12 variables:
13 PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
14
15 # Pip's cache doesn't store the python packages
16 # https://pip.pypa.io/en/stable/reference/pip_install/#caching
17 #
18 # If you want to also cache the installed packages, you have to install
19 # them in a virtualenv and cache it as well.
20 cache:
21 paths:
22 - .cache/pip
23 - venv/
24
25 before_script:
26 # OUTSIDE VIRTUAL ENV -----------------------------------------------------
27 - python -V
28 - python -m ensurepip
29 - python -m pip install -U pip
30 - python -m pip install -U setuptools
31 - python -m pip install -U wheel
32 - python -m pip install -U virtualenv
33 - python -m pip install -U tox
34
35 # Python 2.7 end of support 2020-01
36 # Python 3.4 end of support 2019-03
37 # Python 3.5 end of support 2020-09
38
39 # End of support 2021-12
40 py36-build:
41 stage: build
42 image: python:3.6
43 script:
44 - export TOXENV=py36-build
45 - tox -s true
46
47 # End of support 2023-06
48 py37-build:
49 stage: build
50 image: python:3.7
51 script:
52 - export TOXENV=py37-build
53 - tox -s true
54
55 # End of support 2024-10
56 py38-build:
57 stage: build
58 image: python:3.8
59 script:
60 - export TOXENV=py38-build
61 - tox -s true
62
63
64 py38-test:
65 stage: test
66 image: python:3.8
67 script:
68 - export TOXENV=py38-test
69 - tox -s true
70
71
72 py38-lint:
73 stage: test
74 image: python:3.8
75 allow_failure: false
76 script:
77 - export TOXENV=py38-lint
78 - tox -r -s true
79
80
81 py38-safety:
82 stage: test
83 image: python:3.8
84 script:
85 - export TOXENV=py38-safety
86 - tox -s true
87
88
89 py38-metric:
90 stage: test
91 image: python:3.8
92 script:
93 - export TOXENV=py38-metric
94 - tox -s true
95
96 include:
97 - template: Code-Quality.gitlab-ci.yml
98
99 # py36-test-pyqt:
100 # stage: test
101 # image: python:3.6
102 # script:
103 # - export TOXENV=py36-test-pyqt
104 # - tox -s true
105
106
107 # py36-test-pyside:
108 # stage: test
109 # image: python:3.6
110 # script:
111 # - export TOXENV=py36-test-pyside
112 # - tox -s true
113
114
115 py36-release-pypi:
116 stage: deploy
117 image: python:3.6
118 script:
119 - pip install twine
120 - python setup.py sdist bdist_wheel
121 - echo $CI_COMMIT_TAG
122 - twine check dist/*
123 # try upload in test platform before the oficial
124 - twine upload --repository-url https://test.pypi.org/legacy/ dist/*
125 - pip install --no-deps --index-url https://test.pypi.org/simple/ helpdev
126 - pip uninstall helpdev -y
127 # upload to oficial
128 - twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
129 - pip install helpdev
130 - helpdev --version
131 - pip uninstall helpdev -y
132 only:
133 - tags