Added .travis.yml

This commit is contained in:
Anton Beloglazov 2012-07-25 17:07:14 +10:00
parent 5d0dc74e11
commit 6e8ab2946f
10 changed files with 17 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pyc

Binary file not shown.

Binary file not shown.

Binary file not shown.

8
.travis.yml Normal file
View File

@ -0,0 +1,8 @@
language: python
python:
- 2.6
- 2.7
install:
- python ./setup.py install
- pip install nose --use-mirrors
script: nosetests

Binary file not shown.

View File

@ -20,7 +20,7 @@ setup(
platforms='any',
packages=find_packages(),
tests_require=['nose', 'mocktest'],
tests_require=['nose'], # 'mocktest'
# Project uses reStructuredText, so ensure that the docutils get
# installed or upgraded on the target machine

Binary file not shown.

View File

@ -1,10 +1,12 @@
from pyqcy import *
@qc
def addition_on_ints(x=int, y=int):
assert isinstance(x + y, int)
class Arithmetic(TestCase):
@qc
def addition_on_ints(x=int, y=int):
assert isinstance(x + y, int)
if __name__ == '__main__':
main()
@qc
def subtraction_on_ints(x=int, y=int):
assert isinstance(x - y, int)

Binary file not shown.