Added .travis.yml
This commit is contained in:
parent
5d0dc74e11
commit
6e8ab2946f
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.pyc
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
8
.travis.yml
Normal file
8
.travis.yml
Normal 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.
2
setup.py
2
setup.py
@ -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.
@ -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.
Loading…
x
Reference in New Issue
Block a user