diff --git a/.travis.yml b/.travis.yml index bbbcad2..e5e5098 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,13 @@ language: python cache: pip -python: - - 2.7 - - 3.4 - - 3.5 - - 3.6 - - pypy - - pypy3 +#python: +# - 2.7 +# - 3.4 +# - 3.5 +# - 3.6 +# - pypy +# - pypy3 matrix: include: @@ -24,9 +24,12 @@ matrix: install: - if [[ $TRAVIS_OS_NAME == osx ]]; then brew update; fi - - if [[ $TRAVIS_OS_NAME == osx ]]; then brew upgrade openssl; fi + - if [[ $TRAVIS_OS_NAME == osx && $PYTHON_VERSION == 3 ]]; then brew upgrade python; fi + - if [[ $TRAVIS_OS_NAME == osx ]]; then brew list openssl &>/dev/null || brew install openssl; fi - if [[ $TRAVIS_OS_NAME == osx ]]; then export LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include"; fi - - virtualenv --python=python$PYTHON_VERSION env + - if [[ $TRAVIS_OS_NAME == osx && $PYTHON_VERSION == 3 ]]; then python --version; fi + - if [[ $TRAVIS_OS_NAME == osx && $PYTHON_VERSION == 3 ]]; then python -m venv env; fi + - if [[ $TRAVIS_OS_NAME == osx && $PYTHON_VERSION == 2 ]]; then virtualenv --python=python$PYTHON_VERSION env; fi - source env/bin/activate - make install - if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then pip install lxml==3.8.0; fi