Skip to content

Commit

Permalink
added travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Feb 11, 2019
1 parent 2d3d622 commit 8fc615f
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .travis.yml
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

0 comments on commit 8fc615f

Please sign in to comment.