Skip to content

Commit a8dc0e5

Browse files
committed
Continue debug travis file to pass tests on osx
1 parent 3315b5a commit a8dc0e5

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.travis.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
language: python
22
cache: pip
33

4-
python:
5-
- 2.7
6-
- 3.4
7-
- 3.5
8-
- 3.6
9-
- pypy
10-
- pypy3
4+
#python:
5+
# - 2.7
6+
# - 3.4
7+
# - 3.5
8+
# - 3.6
9+
# - pypy
10+
# - pypy3
1111

1212
matrix:
1313
include:
@@ -24,9 +24,11 @@ matrix:
2424

2525
install:
2626
- if [[ $TRAVIS_OS_NAME == osx ]]; then brew update; fi
27-
- if [[ $TRAVIS_OS_NAME == osx ]]; then brew upgrade openssl; fi
27+
- if [[ $TRAVIS_OS_NAME == osx && $PYTHON_VERSION == 3 ]]; then brew upgrade python; fi
28+
- if [[ $TRAVIS_OS_NAME == osx ]]; then brew list openssl &>/dev/null || brew install openssl; fi
2829
- if [[ $TRAVIS_OS_NAME == osx ]]; then export LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include"; fi
29-
- virtualenv --python=python$PYTHON_VERSION env
30+
- if [[ $TRAVIS_OS_NAME == osx && $PYTHON_VERSION == 3 ]]; then python -m venv env; fi
31+
- if [[ $TRAVIS_OS_NAME == osx && $PYTHON_VERSION == 2 ]]; then virtualenv --python=python$PYTHON_VERSION env; fi
3032
- source env/bin/activate
3133
- make install
3234
- if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then pip install lxml==3.8.0; fi

0 commit comments

Comments
 (0)