Skip to content

Commit

Permalink
Travis CI: Use pyenv on macOS
Browse files Browse the repository at this point in the history
Fixes pyvec#17
  • Loading branch information
hroncok authored and encukou committed Jan 8, 2020
1 parent 31227b8 commit b790b24
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .travis.yml
@@ -1,8 +1,5 @@
language: python

env:
- PYTHON=python

matrix:
include:
- os: linux
Expand All @@ -19,27 +16,26 @@ matrix:
before_install:
- choco install python --version 3.7
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
- python -m pip install --upgrade pip wheel
- os: osx
# Perform the manual steps on osx to install python3
# Get Python 3.7 from pyenv
language: sh
python: 3.7
env:
- PYTHON=python3
- HOMEBREW_NO_INSTALL_CLEANUP=1
before_install:
# Remove unneeded stuff (which Brew would want to upgrade)
- "brew remove numpy gdal postgis postgresql || :"
# Install or update Python
- "brew install python3 || :"
- "brew upgrade python3"
- HOMEBREW_NO_INSTALL_CLEANUP=1 brew upgrade pyenv
- git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest
- pyenv install-latest 3.7
- pyenv global $(pyenv install-latest --print 3.7)
- eval "$(pyenv init -)"


cache:
directories:
- $HOME/.cache/pip
- $HOME/.pyenv/cache

install:
- $PYTHON -m pip install .[dev]
- python -m pip install --upgrade pip setuptools wheel
- python -m pip install .[dev]

script:
- $PYTHON -m pytest
- python -m pytest test_naucse_render

0 comments on commit b790b24

Please sign in to comment.