forked from python-rapidjson/python-rapidjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
34 lines (30 loc) · 986 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
34 lines (30 loc) · 986 Bytes
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
# -*- coding: utf-8 -*-
# :Project: python-rapidjson -- Gitlab CI configuration
# :Author: Lele Gaifax <[email protected]>
# :License: MIT License
# :Copyright: © 2017, 2018, 2019, 2020 Lele Gaifax
#
# When the master branch is tagged, build the Python 3.6 wheels and upload
# them to PyPI.
#
# This is a workaround to an issue in building those wheels on Travis CI, see
# https://mail.python.org/pipermail/wheel-builders/2017-August/000285.html
stages:
- deploy
variables:
CIBW_OUTPUT_DIR: wheelhouse
CIBW_PLATFORM: linux
CIBW_SKIP: "cp2* cp33* cp34* cp35*"
CIBW_TEST_COMMAND: "python -c 'import rapidjson; print(rapidjson.__version__)'"
TWINE_USERNAME: lelit
# Note: TWINE_PASSWORD is set in Gitlab settings
build:
stage: deploy
only:
- tags
script:
- git submodule update --init --recursive
- python3 -m venv env
- env/bin/pip install cibuildwheel==1.1.0 twine
- env/bin/cibuildwheel
- env/bin/twine upload wheelhouse/*.whl