Skip to content

Commit

Permalink
travis: get python 2.6 build up for OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed May 23, 2016
1 parent 6374716 commit 256b5d7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,21 @@ compiler:

# try some different compiler options
env:
- TRAVIS_PYTHON=python2.6
- TRAVIS_PYTHON=python2.7
- TRAVIS_PYTHON=python3.5
# - CONFIGARGS="--enable-stack-protector"
# - CONFIGARGS="" WATCHMAN_VALGRIND=1

# TODO: On Linux we currently use system versions of Python. That makes it
# somewhat annoying to get third-party dependencies in, since sudo isn't
# available. We should figure out how to solve this for real, either with
# virtualenv or with the pyenv mechanism Hypothesis uses:
# http://www.drmaciver.com/2015/10/a-whirlwind-tour-of-the-hypothesis-build/
matrix:
exclude:
- os: linux
env: TRAVIS_PYTHON=python2.6

before_script: ./travis/deps.sh
script: ./travis/run.sh
7 changes: 7 additions & 0 deletions travis/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ case `uname` in
CFLAGS="$CFLAGS $ARCHFLAGS"
export ARCHFLAGS CFLAGS
case "$TRAVIS_PYTHON" in
python2.6)
pyenv install 2.6.9
eval "$(pyenv init -)"
pyenv global 2.6.9
# install some other required dependencies
pip2.6 install unittest2==1.1.0 argparse
;;
python2.7)
pyenv install 2.7.11
pyenv global 2.7.11
Expand Down

0 comments on commit 256b5d7

Please sign in to comment.