Merge pull request #1078 from fonttools/travis-py276

run tests on Python 2.7.6 on Travis
This commit is contained in:
Cosimo Lupo 2017-10-20 12:42:36 +02:00 committed by GitHub
commit 330d46ab7e
2 changed files with 20 additions and 0 deletions

View File

@ -26,6 +26,20 @@ matrix:
env:
- TOXENV=py35-cov
- HOMEBREW_NO_AUTO_UPDATE=1
- env:
- TOXENV=py27-nocov
- PYENV_VERSION='2.7.6'
- PYENV_VERSION_STRING='Python 2.7.6'
- PYENV_ROOT=$HOME/.travis-pyenv
- TRAVIS_PYENV_VERSION='0.4.0'
cache:
- pip
- directories:
- $HOME/.pyenv_cache
before_install:
- source ./.travis/before_install.sh
install:
- ./.travis/install.sh

6
.travis/before_install.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
if [[ -n "$PYENV_VERSION" ]]; then
wget https://github.com/praekeltfoundation/travis-pyenv/releases/download/${TRAVIS_PYENV_VERSION}/setup-pyenv.sh
source setup-pyenv.sh
fi