Skip to content

Commit 3e9f342

Browse files
authored
Add python2 travis (#1)
* add python 2.7 to travis * update PYTHONPATH * use py.test
1 parent 3bb9b3d commit 3e9f342

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: python
22
python:
33
- "3.5"
4+
- "2.7"
45

56
before_install:
67
- mkdir -p $HOME/bin
@@ -11,8 +12,8 @@ install:
1112
- pip install -r requirements.txt
1213

1314
script:
14-
- export PYTHONPATH=$TRAVIS_BUILD_DIR
15-
- pytest --junit-xml=testresults.xml
15+
- export PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR
16+
- py.test --junit-xml=testresults.xml
1617

1718
after_script:
18-
- testspace testresults*.xml
19+
- testspace [$TRAVIS_PYTHON_VERSION]testresults*.xml

0 commit comments

Comments
 (0)