copy file into src dir
@@ -12,7 +12,9 @@ source:
build:
number: 0
noarch: python
- script: {{ PYTHON }} -m pip install . --no-deps -vv
+ script:
+ - cp $RECIPE_DIR/test_flake8_file.py $SRC_DIR
+ - {{ PYTHON }} -m pip install . --no-deps -vv
entry_points:
- flake8_junit = junit_conversor.__main__:main
@@ -28,7 +30,7 @@ test:
imports:
- junit_conversor
source_files:
- - $RECIPE_DIR/test_flake8_file.py
+ - test_flake8_file.py
commands:
- flake8 test_flake8_file.py --output-file flake8.txt || echo "expected to set exit code 1"
- flake8_junit flake8.txt flake8_junit.xml
