-
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
1 parent
2d3d622
commit 8fc615f
Showing
1 changed file
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
language: python | ||
|
||
matrix: | ||
include: | ||
- name: "Linux py27" | ||
sudo: required | ||
language: python | ||
python: 2.7 | ||
services: docker | ||
env: | ||
- PIP=pip | ||
- CIBW_BUILD="cp27-*" | ||
- COVER="off" | ||
|
||
- name: "Linux py36" | ||
sudo: required | ||
language: python | ||
python: 3.6 | ||
services: docker | ||
env: | ||
- PIP=pip | ||
- CIBW_BUILD="cp36-*" | ||
- COVER="on" | ||
|
||
env: | ||
global: | ||
- TWINE_USERNAME=geostatframework | ||
|
||
script: | ||
# create wheels | ||
- $PIP install cibuildwheel==0.10.1 | ||
- cibuildwheel --output-dir wheelhouse | ||
# create source dist for pypi and create coverage (only once for linux py3.6) | ||
- | | ||
if [[ $COVER == "on" ]]; then | ||
rm -rf dist | ||
python setup.py sdist | ||
fi | ||
after_success: | ||
# pypi upload (test allways and official on TAG) | ||
- python -m pip install twine | ||
- python -m twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ wheelhouse/*.whl | ||
- python -m twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*.tar.gz | ||
- | | ||
if [[ $TRAVIS_TAG ]]; then | ||
python -m twine upload --skip-existing wheelhouse/*.whl | ||
python -m twine upload --skip-existing dist/*.tar.gz | ||
fi | ||
notifications: | ||
email: | ||
recipients: | ||
- info@geostat-framework.org |