-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
136 lines (121 loc) · 2.67 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
variables:
GIT_SUBMODULE_STRATEGY: recursive
image: python
stages:
- test
- release
before_script:
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install -U setuptools
python27:
image: python:2.7
stage: test
script:
- pip install tox
- tox -e py27
#python34:
# image: python:3.4
# stage: test
# script:
# - pip install tox
# - tox -e py34
python35:
image: python:3.5
stage: test
script:
- pip install tox
- tox -e py35
python36:
image: python:3.6
stage: test
script:
- pip install tox
- tox -e py36
python37:
image: python:3.7
stage: test
script:
- pip install tox
- tox -e py37
#docs:
# before_script:
# - pip install Sphinx
# script:
# - python setup.py docs
flake8:
image: python
stage: test
script:
- pip install tox
- tox -e flake8
commitlint:
stage: test
image: node:8
only:
- master
- merge_requests
- develop
script:
- npm install -g @commitlint/cli @commitlint/config-conventional
- export LAST_TAG=$(git describe --abbrev=0 --tags) # get last tag
- commitlint --from=$LAST_TAG # check commit convention from last tag
build:
stage: release
only:
- develop
- before_0.9
script:
- pip install devpi-client
- rm -rf dist build
- devpi use https://pkgs.frkl.io/
- devpi login frkl --password="${DEVPI_PASSWORD}"
- devpi use /frkl/dev
- devpi upload
artifacts:
paths:
- dist/
expire_in: 1 month
build_stable:
stage: release
only:
- /^\d+\.\d+\.\d+$/
except:
- branches
script:
- pip install devpi-client
- rm -rf dist build
- devpi use https://pkgs.frkl.io/
- devpi login frkl --password="${DEVPI_PASSWORD}"
- devpi use /frkl/stable
- devpi upload
- UPLOAD_FILE=(dist/freckles-*.tar.gz)
- "curl -F package=@${UPLOAD_FILE} https://${GEMFURY_TOKEN}@push.fury.io/frkl/"
- UPLOAD_FILE=(dist/freckles-*.whl)
- "curl -F package=@${UPLOAD_FILE} https://${GEMFURY_TOKEN}@push.fury.io/frkl/"
artifacts:
paths:
- dist/
expire_in: 1 month
build_beta:
stage: release
only:
- /^\d+\.\d+\.\d+b\d+$/
except:
- branches
script:
- pip install devpi-client
- rm -rf dist build
- devpi use https://pkgs.frkl.io/
- devpi login frkl --password="${DEVPI_PASSWORD}"
- devpi use /frkl/beta
- devpi upload
- UPLOAD_FILE=(dist/freckles-*.tar.gz)
- "curl -F package=@${UPLOAD_FILE} https://${GEMFURY_TOKEN}@push.fury.io/frkl/"
- UPLOAD_FILE=(dist/freckles-*.whl)
- "curl -F package=@${UPLOAD_FILE} https://${GEMFURY_TOKEN}@push.fury.io/frkl/"
artifacts:
paths:
- dist/
expire_in: 1 month