Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 184475f

Browse files
committed
Run tests in 2.7 and 3.5 environment
1 parent 0b35b1e commit 184475f

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ test: pep8 pyflakes
1111
python setup.py test
1212
rm tests/filepath/cobertura.xml || true
1313

14+
test-all:
15+
tox
16+
1417
coverage:
1518
rm coverage.xml || true
1619
sed 's?\$$1?'`pwd`'?' tests/filepath/cobertura.xml.tpl > tests/filepath/cobertura.xml

circle.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ dependencies:
77
- sudo pip install pep8 --upgrade
88
- sudo pip install pyflakes
99
- sudo pip install coverage
10-
10+
- sudo pip install virtualenv==12.0.2
11+
1112
test:
1213
override:
13-
- make test
14+
- make test-all
1415
- make install
1516
- make coverage

src/codacy/reporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
def get_git_revision_hash():
2020
import subprocess
2121

22-
return subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip()
22+
return subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode("utf-8").strip()
2323

2424

2525
def get_git_directory():
2626
import subprocess
2727

28-
return subprocess.check_output(['git', 'rev-parse', '--show-toplevel']).strip()
28+
return subprocess.check_output(['git', 'rev-parse', '--show-toplevel']).decode("utf-8").strip()
2929

3030

3131
def file_exists(rootdir, filename):

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[tox]
2+
envlist = py27, py35
3+
4+
[testenv]
5+
commands = make test
6+
whitelist_externals=make

0 commit comments

Comments
 (0)