From b3c80d096a04921b5f50d641c689bf34336e0577 Mon Sep 17 00:00:00 2001 From: Ajay Patel Date: Mon, 25 May 2020 00:08:58 -0700 Subject: [PATCH] Setup on OSX and Linux on Travis --- .travis.yml | 17 ++++++++++++----- version.py | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4d1ab91..fadb871 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,12 +15,19 @@ jobs: # and a mac build - os: osx +before_install: + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" ; fi + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install python ; fi + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PYTHON_EXEC_PATH=$(which python) ; fi + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then rm -rf $PYTHON_EXEC_PATH ; fi + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ln -s $(which python3) $PYTHON_EXEC_PATH ; fi + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then python --version ; fi + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then python3 --version ; fi + - if [ "$TRAVIS_OS_NAME" = "linux" ]; then apt-get update ; fi + - if [ "$TRAVIS_OS_NAME" = "linux" ]; then apt-get install python3-setuptools python3-dev python3-pip -y ; fi + script: - - export PYTHON_EXEC_PATH=$(which python) - - rm -rf $PYTHON_EXEC_PATH - - ln -s $(which python3) $PYTHON_EXEC_PATH - - python --version - - python3 --version + - python3 -m pip install pip setuptools -U - python3 -m pip install cibuildwheel==1.4.1 - eval "buildwheel() { cibuildwheel --output-dir wheelhouse >>buildwheel.log 2>&1; }" diff --git a/version.py b/version.py index 687a91f..e7d6443 100644 --- a/version.py +++ b/version.py @@ -1,2 +1,2 @@ -__version_info__ = ('0', '1', '136') +__version_info__ = ('0', '1', '137') __version__ = '.'.join(__version_info__)