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',
|
platforms='any',
|
||||||
|
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
tests_require=['nose', 'mocktest'],
|
tests_require=['nose'], # 'mocktest'
|
||||||
|
|
||||||
# Project uses reStructuredText, so ensure that the docutils get
|
# Project uses reStructuredText, so ensure that the docutils get
|
||||||
# installed or upgraded on the target machine
|
# installed or upgraded on the target machine
|
||||||
|
Binary file not shown.
@ -1,10 +1,12 @@
|
|||||||
from pyqcy import *
|
from pyqcy import *
|
||||||
|
|
||||||
|
|
||||||
@qc
|
class Arithmetic(TestCase):
|
||||||
def addition_on_ints(x=int, y=int):
|
|
||||||
assert isinstance(x + y, int)
|
|
||||||
|
|
||||||
|
@qc
|
||||||
|
def addition_on_ints(x=int, y=int):
|
||||||
|
assert isinstance(x + y, int)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
@qc
|
||||||
main()
|
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