blob: d6dce87ff21ce58011b90ee6348e51ebb2f0f528 (
plain)
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
|
stages:
- test
- coverage
- build
- upload
image: python:3-alpine
variables:
TWINE_NON_INTERACTIVE: "true"
CONFIG_FILE: ".pypirc"
cache:
paths:
- .pipcache/
before_script:
- apk --no-cache add make
- pip --cache-dir .pipcache install -r test-requirements.txt
- cat /etc/alpine-release
- python -V
.test:
stage: test
script:
- make test
test:3.6:
extends: .test
image: python:3.6-alpine
test:3.7:
extends: .test
image: python:3.7-alpine
test:3.8:
extends: .test
image: python:3.8-alpine
test:3.9:
extends: .test
image: python:3.9-alpine
# 3.10
test:rc:
extends: .test
allow_failure: true
image: python:rc-alpine
testpypi:
stage: upload
script:
- pip --cache-dir .pipcache install twine
- python setup.py sdist bdist_wheel
- twine upload --skip-existing --repository testpypi dist/*
only:
- master
pypi:
stage: upload
script:
- pip --cache-dir .pipcache install twine
- python setup.py sdist bdist_wheel
- twine upload --skip-existing --repository pypi dist/*
only:
- tags
aur_git:
stage: upload
script:
- echo "build pygerber-git"
only:
- master
aur:
stage: upload
script:
- echo "build pygerber"
only:
- tags
|