-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-testing' into develop
- Loading branch information
Showing
6 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -y libsdl2-2.0-0 libsdl2-gfx-1.0-0 libsdl2-ttf-2.0-0 | ||
language: python | ||
python: 3.4 | ||
install: | ||
- pip install -r requirements/tox.txt | ||
- pip install coveralls | ||
script: | ||
- tox -e $TOX_ENV | ||
after_success: | ||
- coverage combine | ||
- coverage report | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
coverage==3.7.1 | ||
pytest==2.7.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tox==2.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
from setuptools import setup, find_packages | ||
import os | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import pytest | ||
|
||
|
||
def test_package_import(): | ||
try: | ||
import pyagar | ||
except ImportError as exc: | ||
assert False, exc | ||
else: | ||
assert True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Tox (http://tox.testrun.org/) is a tool for running tests | ||
# in multiple virtualenvs. This configuration file will run the | ||
# test suite on all supported python versions. To use it, "pip install tox" | ||
# and then run "tox" from this directory. | ||
|
||
[tox] | ||
envlist = py34 | ||
|
||
[testenv] | ||
passenv = PYSDL2_DLL_PATH | ||
deps =-rrequirements/develop.txt | ||
commands = {envbindir}/coverage run -p --branch {envbindir}/py.test -m 'not wip' -v tests/unit | ||
|
||
[testenv:wip] | ||
basepython = python3.4 | ||
passenv = PYSDL2_DLL_PATH | ||
deps =-rrequirements/develop.txt | ||
commands = {envbindir}/coverage run -p --branch {envbindir}/py.test -m 'wip' -v -s tests/unit |