-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
106 lines (95 loc) · 2.05 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
stages:
- build
- deploy
.wheel:
stage: build
tags:
- linux
script:
- ./ci/build-wheels.sh ${CI_PROJECT_DIR} ${CI_PROJECT_DIR}/wheelhouse
artifacts:
paths:
- wheelhouse/*.whl
wheel-x86:
extends: .wheel
image: quay.io/pypa/manylinux_2_24_x86_64
variables:
PLAT: manylinux_2_24_x86_64
wheel-aarch64:
extends: .wheel
image: quay.io/pypa/manylinux_2_24_aarch64
variables:
PLAT: manylinux_2_24_aarch64
src:
stage: build
tags:
- linux
image: python:3.7
before_script:
- python -m pip install build
script:
- python -m build --sdist --outdir dist .
artifacts:
paths:
- dist/*.tar.gz
.wheel-win:
stage: build
tags:
- windows
before_script:
# https://gitlab.com/gitlab-org/ci-cd/shared-runners/images/gcp/windows-containers/-/issues/13
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
- choco install python3 --version=$PYTHON_VERSION --yes --force --no-progress
- refreshenv
script:
- python --version
- python -m pip install build
- python -m build --wheel --outdir dist .
artifacts:
paths:
- dist\ft4222-*.whl
wheel-win-3.7:
extends: .wheel-win
variables:
PYTHON_VERSION: "3.7"
wheel-win-3.8:
extends: .wheel-win
variables:
PYTHON_VERSION: "3.8"
wheel-win-3.9:
extends: .wheel-win
variables:
PYTHON_VERSION: "3.9"
wheel-win-3.10:
extends: .wheel-win
variables:
PYTHON_VERSION: "3.10"
pypi:
stage: deploy
image: python:3.7-slim
before_script:
- pip install twine
script:
- twine upload dist/*
- twine upload wheelhouse/*
only:
- tags
pages:
stage: build
tags:
- linux
image: python:3.7-alpine
before_script:
- apk --no-cache add build-base
- echo "manylinux1_compatible = True" > $(dirname /usr/local/lib/python3.*/.)/site-packages/_manylinux.py
- pip install cython
script:
- pip install sphinx m2r2 sphinx-rtd-theme
- python setup.py install
- make -C doc html
- mv doc/_build/html/ public/
artifacts:
paths:
- public
only:
- master