File tree Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -30,24 +30,35 @@ before_install:
30
30
31
31
install :
32
32
- export PYVER=${TRAVIS_PYTHON_VERSION:0:1}
33
+ - if [ $PYVER = 3 ]; then
34
+ export PYCMD=python3;
35
+ export PIPCMD=pip3;
36
+ else
37
+ export PYCMD=python;
38
+ export PIPCMD=pip;
39
+ fi;
40
+
33
41
- if [ $COVERALLS = 1 ]; then
34
- pip install --upgrade coveralls;
42
+ $PIPCMD install --upgrade coveralls;
35
43
fi;
44
+
36
45
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
37
- which python ;
46
+ which $PYCMD ;
38
47
source venv/bin/activate;
39
- which python;
40
- fi
41
- - pip install lxml enum34 pyyaml
48
+ brew upgrade python;
49
+ which $PYCMD;
50
+ fi;
51
+
52
+ - $PIPCMD install lxml enum34 pyyaml rdflib
42
53
43
54
script :
44
- - which python
45
- - python setup.py build
55
+ - which $PYCMD
56
+ - $PYCMD setup.py build
46
57
- if [ $COVERALLS = 1 ]; then
47
58
coverage${PYVER} run --source=odml setup.py test && coverage${PYVER} report -m;
48
59
else
49
- python setup.py test;
60
+ $PYCMD setup.py test;
50
61
fi;
51
62
52
63
after_success :
53
- - if [ $COVERALLS = 1 ]; then coveralls; fi;
64
+ - if [ $COVERALLS = 1 ]; then coveralls; fi;
You can’t perform that action at this time.
0 commit comments