Skip to content

Commit

Permalink
don't install reqs as part of test
Browse files Browse the repository at this point in the history
  • Loading branch information
nchammas committed Feb 5, 2016
1 parent 8b88c80 commit 85afbba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ install:
script:
- "py.test ./tests/test_static.py"
- "py.test ./tests/test_flintrock.py"
- "pip install -r requirements/maintainer.pip"
- "py.test ./tests/test_pyinstaller_packaging.py"
addons:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion requirements/maintainer.pip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
wheel >= 0.26.0
twine >= 1.6.4
pypandoc >= 1.1.2
PyInstaller >= 3.1
PyInstaller >= 3.1.1
9 changes: 6 additions & 3 deletions tests/test_pyinstaller_packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
import pytest


def pyinstaller_exists():
s = subprocess.run(['command', '-v', 'pyinstaller'])
return s.returncode == 0


@pytest.mark.skipif(sys.version_info < (3, 5), reason="Python 3.5+ is required")
@pytest.mark.skipif(not pyinstaller_exists(), reason="PyInstaller is required")
def test_pyinstaller_packaging():
subprocess.run(
['pip', 'install', '-r', 'requirements/maintainer.pip'],
check=True)
subprocess.run(
['python', 'generate-standalone-package.py'],
check=True)
Expand Down

0 comments on commit 85afbba

Please sign in to comment.