Browse Source

Added PYTHONPATH="." to Makefile to make jenkins and travis happy

tags/0.3.1
Johann Schmitz 2 years ago
parent
commit
f697319d0c
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Makefile

+ 4
- 4
Makefile View File

@@ -3,15 +3,15 @@ TARGET?=tests
3 3
 VERSION := $(shell grep -Po '"(.*)"' smartcheck/__init__.py | sed -e 's/"//g')
4 4
 
5 5
 test_default_python:
6
-	python tests/ -v
6
+	PYTHONPATH="." python tests/ -v
7 7
 
8 8
 test_py2:
9 9
 	@echo Executing test with python2
10
-	python2 tests/ -v
10
+	PYTHONPATH="." python2 tests/ -v
11 11
 
12 12
 test_py3:
13 13
 	@echo Executing test with python3
14
-	python3 tests/ -v
14
+	PYTHONPATH="." python3 tests/ -v
15 15
 
16 16
 test: test_py2 test_py3
17 17
 
@@ -25,7 +25,7 @@ compile_optimized:
25 25
 
26 26
 coverage:
27 27
 	coverage erase
28
-	coverage run --source='.' --omit 'tests/*,setup.py' --branch tests/__main__.py
28
+	PYTHONPATH="." coverage run --source='.' --omit 'tests/*,setup.py' --branch tests/__main__.py
29 29
 	coverage report -m
30 30
 
31 31
 sonar:

Loading…
Cancel
Save