Skip to content

Commit

Permalink
Setup on OSX and Linux on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayP13 committed May 25, 2020
1 parent f719e73 commit b3c80d0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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; }"
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version_info__ = ('0', '1', '136')
__version_info__ = ('0', '1', '137')
__version__ = '.'.join(__version_info__)

0 comments on commit b3c80d0

Please sign in to comment.