-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
132 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,75 @@ | ||
language: python | ||
python: "3.7" | ||
|
||
python: | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
- "3.8-dev" | ||
|
||
before_install: | ||
- pip install cpp-coveralls | ||
|
||
script: | ||
- COVERAGE=1 python setup.py build -f | ||
- python setup.py test | ||
- cp build/temp.*/* . | ||
- rm -rf build | ||
|
||
- python setup.py build -f | ||
- python setup.py test | ||
- python setup.py sdist | ||
- python setup.py bdist_wheel | ||
|
||
after_success: | ||
- coveralls --exclude clinic --gcov-options '\-lp' | ||
|
||
env: | ||
global: | ||
- PYPI_REPOSITORY_URL=https://upload.pypi.org/legacy/ | ||
- PYPI_USERNAME=__token__ | ||
- secure: "jfAnPdxjTDw/mFbM2rmqjHaBtGpA+Rr+goCB5/Jp6RZ5N2M60nJliw8B5v7RwZDy//nSIdbTBU7cF/7WjEPwzrHUn5LQsS13ThzoS6KE7NUPa77TOxEpHXr4MJsyeSQMindEbAMeYP+lffI8/ISQ85evIbbSn6XzZSN/YBpQCTUGHWViqKIlpT70GYfRTeEJ0YvXxcJHKXoMuG7N80n8DW88FlfuI2age29cAe80pNn2yCZww2ZH0kG62HGQhzVv4v/uvxLLTaDP/JndYQyBnw6y5gesT2XCrgmCPgCTyVrtJsR96LjOukG2/T5etgpK0sgRwfgRk2DjKmlUqQOUm57lO+52ECaqqbaERFYe/Ub4JZ4DD05lKqm6wtQMD+fYl+TLKzGvCWayuLvxs7HqI+cz0BQQ7iynXuPUqX3xpkUDdAUzg9remmEJ1n8WG/NMHsv3Embh6zHS9RW7OUBXTELjrgJHVwjm8N0KtY063kMDArlSLNcf1gUPOx8MTOXBQWcauxmLfXMyaWrjHQ++1dWRFWjNVkUWfv+l17/ZHJHHnaJ6VpzhrZ5uku4LfEH8hgOCL6EYbO1PVXuEvFXDQX6wIFdbXaXSkx78ZgfiJf3xDqxcU1jl7+ipoCe2xkXaRkka0wg1gwCsfF53suXGIEIMRBWqrGJI9vETu5mVQDY=" | ||
|
||
|
||
deploy: | ||
provider: script | ||
skip_cleanup: true | ||
script: bash travis/deploy.sh | ||
on: | ||
tags: true | ||
condition: $DEPLOY = 1 | ||
|
||
|
||
jobs: | ||
include: | ||
- stage: build | ||
name: "Manylinux x86_64" | ||
env: DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64 | ||
PLAT=manylinux2010_x86_64 | ||
DEPLOY=1 | ||
services: | ||
- docker | ||
install: | ||
- docker pull $DOCKER_IMAGE | ||
script: | ||
- docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-wheels.sh | ||
- ls wheelhouse/ | ||
|
||
- stage: build | ||
name: "Manylinux i686" | ||
services: | ||
- docker | ||
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 | ||
PRE_CMD=linux32 | ||
PLAT=manylinux1_i686 | ||
DEPLOY=1 | ||
install: | ||
- docker pull $DOCKER_IMAGE | ||
script: | ||
- docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-wheels.sh | ||
- ls wheelhouse/ | ||
|
||
- stage: build | ||
name: Coverage | ||
env: COVERAGE=1 | ||
install: | ||
- pip install cpp-coveralls bitstruct | ||
script: | ||
- python setup.py install | ||
- nosetests cbitstruct | ||
- coveralls --exclude clinic --gcov-options '\-lp' | ||
|
||
- stage: build | ||
name: Performance | ||
install: | ||
- pip install bitstruct | ||
script: | ||
- python setup.py install | ||
- python cbitstruct/tests/test_perf.py | ||
|
||
- stage: build | ||
name: "Forward support" | ||
python: "3.8-dev" | ||
install: | ||
- pip install bitstruct | ||
script: | ||
- python setup.py install | ||
- nosetests cbitstruct |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nose | ||
bitstruct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
# Show gcc version | ||
gcc --version | ||
|
||
# Compile wheels | ||
for PYBIN in /opt/python/cp3*/bin; do | ||
"${PYBIN}/pip" install -r /io/dev-requirements.txt | ||
"${PYBIN}/pip" wheel /io/ -w wheelhouse/ | ||
done | ||
|
||
# Bundle external shared libraries into the wheels | ||
for whl in wheelhouse/*.whl; do | ||
auditwheel repair "$whl" --plat $PLAT -w /io/wheelhouse/ | ||
done | ||
|
||
# Install packages and test | ||
for PYBIN in /opt/python/cp3*/bin/; do | ||
"${PYBIN}/pip" install cbitstruct --no-index -f /io/wheelhouse | ||
(cd "$HOME"; "${PYBIN}/nosetests" cbitstruct) | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pip install pip --upgrade | ||
pip install twine | ||
|
||
twine upload --repository-url "$PYPI_REPOSITORY_URL" -u "$PYPI_USERNAME" -p "$PYPI_PASSWORD" wheelhouse/* |