Skip to content

Commit 320b02e

Browse files
committed
[.travis] Copy from master branch
1 parent 0266339 commit 320b02e

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.travis.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff 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-
3128
install:
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

6368
after_success:
64-
- if [ $COVERALLS = 1 ]; then coveralls; fi;
69+
- if [ $COVERALLS = 1 ]; then coveralls; fi;

0 commit comments

Comments
 (0)