language: python
matrix:
include:
- os: osx
language: generic
compiler: gcc
env:
- PIP=pip2
- PYTHON=python2
script:
- cd python
- git describe --exclude v* --tags --abbrev=0 >VERSION
- cp -r ../lib .
- cp -r ../third_party .
- cp ../test/atca_utils_sizes.c .
- mkdir app
- cp -r ../app/tng app
- $PIP install wheel
- $PYTHON setup.py sdist --dist-dir wheelhouse
- $PIP install cibuildwheel
- export CIBW_SKIP='cp34-*'
- export CIBW_BUILD_VERBOSITY=3
- cibuildwheel --output-dir wheelhouse
- |
if [[ $TRAVIS_TAG =~ ^[0-9]+$ ]]; then
$PIP install twine
$PYTHON -m twine upload wheelhouse/* --skip-existing
fi