Skip to content

Commit

Permalink
Merge branch 'feature-testing' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nilp0inter committed Jul 22, 2015
2 parents f1804f1 + 63bff04 commit c731242
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
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
2 changes: 2 additions & 0 deletions requirements/develop.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage==3.7.1
pytest==2.7.2
1 change: 1 addition & 0 deletions requirements/tox.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tox==2.1.1
1 change: 1 addition & 0 deletions setup.py
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

Expand Down
10 changes: 10 additions & 0 deletions tests/unit/test_package.py
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
18 changes: 18 additions & 0 deletions tox.ini
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

0 comments on commit c731242

Please sign in to comment.