File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ matrix:
2525# env:
2626# - OSXENV=2.7
2727
28- before_install :
29- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash resources/install_osx_virtualenv.sh; fi
30-
3128install :
3229 - export PYVER=${TRAVIS_PYTHON_VERSION:0:1}
3330 - if [ $PYVER = 3 ]; then
@@ -43,10 +40,18 @@ install:
4340 fi;
4441
4542 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
46- which $PYCMD;
47- source venv/bin/activate;
48- brew upgrade python;
49- which $PYCMD;
43+ if [[ "$OSXENV" == "2.7" ]]; then
44+ brew install python@2;
45+ virtualenv venv -p python;
46+ source venv/bin/activate;
47+ export PYCMD=python;
48+ export PIPCMD=pip;
49+ else
50+ brew upgrade python;
51+ source venv/bin/activate;
52+ export PYCMD=python3;
53+ export PIPCMD=pip3;
54+ fi;
5055 fi;
5156
5257 - $PIPCMD install lxml enum34 pyyaml rdflib
@@ -61,4 +66,4 @@ script:
6166 fi;
6267
6368after_success :
64- - if [ $COVERALLS = 1 ]; then coveralls; fi;
69+ - if [ $COVERALLS = 1 ]; then coveralls; fi;
You can’t perform that action at this time.
0 commit comments