FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-rapidjson/.travis.yml at master · regit/python-rapidjson · GitHub
regit
/
python-rapidjson
Public
forked from
python-rapidjson/python-rapidjson
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-rapidjson
/
.travis.yml
Copy path
More file actions
More file actions
Latest commit
History
History
History
62 lines (56 loc) · 1.77 KB
Breadcrumbs
python-rapidjson
/
.travis.yml
Copy path
File metadata and controls
62 lines (56 loc) · 1.77 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
-*- coding: utf-8 -*-
#
:Project: python-rapidjson -- Configuration to build and upload manylinux1 wheels to PyPI
#
:Author: Lele Gaifax <lele@metapensiero.it>
#
:License: MIT License
#
:Copyright: © 2017, 2018, 2019, 2020 Lele Gaifax
#
#
Here we execute the Python 3.6 tests; Python 3.7, 3.8 and 3.9 tests are run by
#
cibuildwheel, inside the manylinux1 Docker image.
#
#
We also run tests for memory leaks (which require a debug build of python)
#
using python3.5. Specifically we install python3.5-dbg, the only python3
#
runtime with debug support present on the Ubuntu Xenial.
dist
:
bionic
matrix
:
include
:
-
sudo
:
required
language
:
python
python
:
"
3.6
"
services
:
-
docker
-
language
:
python
python
:
"
3.6
"
env
:
RUN_DEBUG_PYTHON=true
-
os
:
osx
python
:
"
3.8
"
env
:
global
:
-
CIBW_TEST_REQUIRES="pytest pytest-benchmark pytz"
-
CIBW_TEST_COMMAND="py.test {project}/tests"
-
CIBW_SKIP="cp2* cp33* cp34* cp35* pp*"
-
TWINE_USERNAME=lelit
#
Note: TWINE_PASSWORD is set in Travis settings
install
:
-
|
if [ $RUN_DEBUG_PYTHON = true ]; then
sudo apt-get install python3-dbg
virtualenv -p python3-dbg /tmp/env
. /tmp/env/bin/activate
fi
-
pip3 install -r requirements-test.txt
script
:
-
pip3 install .
-
pytest tests
-
pushd docs
-
make doctest -e PYTHON=$(which python3)
-
popd
#
cibuildwheel's docker might get confused and throw an ImportMismatchError,
#
so we remove bytecode files before running it.
-
find . -name __pycache__ -exec rm -rf {} +
-
|
pip3 install cibuildwheel==1.6.3
cibuildwheel --output-dir wheelhouse
if [[ -n "$TRAVIS_TAG" && -z "$RUN_DEBUG_PYTHON" ]]; then
pip3 install twine
python3 -m twine upload wheelhouse/*.whl
fi
Back
|
FazBrowse Home
|
New Git URL