File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ matrix:
25
25
# env:
26
26
# - OSXENV=2.7
27
27
28
- before_install :
29
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash resources/install_osx_virtualenv.sh; fi
30
-
31
28
install :
32
29
- export PYVER=${TRAVIS_PYTHON_VERSION:0:1}
33
30
- if [ $PYVER = 3 ]; then
@@ -43,10 +40,18 @@ install:
43
40
fi;
44
41
45
42
- 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;
50
55
fi;
51
56
52
57
- $PIPCMD install lxml enum34 pyyaml rdflib
@@ -61,4 +66,4 @@ script:
61
66
fi;
62
67
63
68
after_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