File tree Expand file tree Collapse file tree 3 files changed +70
-0
lines changed Expand file tree Collapse file tree 3 files changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : python
2
+ python :
3
+ - " 3.2"
4
+ - " 3.3"
5
+ - " 3.4"
6
+ - " pypy3"
7
+
8
+ install : python setup.py install
9
+
10
+ script : bash travis.sh
Original file line number Diff line number Diff line change 1
1
Mypy Readme
2
2
===========
3
3
4
+ [ ![ Build Status] ( https://travis-ci.org/JukkaL/mypy.svg )] ( https://travis-ci.org/JukkaL/mypy )
5
+
4
6
5
7
What is mypy?
6
8
-------------
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ result=0
4
+
5
+ fail ()
6
+ {
7
+ result = 1
8
+ }
9
+
10
+ # Setup stuff
11
+
12
+ DRIVER=$PWD /scripts/mypy
13
+ export PYTHONPATH=` pwd` /lib-typing/3.2:` pwd`
14
+
15
+ # Basic tests
16
+
17
+ echo Running tests...
18
+ echo
19
+ echo tests.py
20
+ python " $DRIVER " tests.py || fail
21
+ for t in mypy.test.testpythoneval mypy.test.testcgen; do
22
+ echo $t
23
+ python " $DRIVER " -m $t || fail
24
+ done
25
+
26
+ # Stub checks
27
+
28
+ STUBTEST=_test_stubs.py
29
+ cd stubs/3.2
30
+ ls * .py | sed s/\\ .py//g | sed " s/^/import /g" > $STUBTEST
31
+ for m in os os.path; do
32
+ echo " import $m " >> $STUBTEST
33
+ done
34
+
35
+ echo Type checking stubs...
36
+ echo
37
+ python " $DRIVER " -S $STUBTEST || fail
38
+ rm $STUBTEST
39
+ cd ..
40
+
41
+ # Sample checks
42
+
43
+ # Only run under 3.2
44
+
45
+ if [ " ` python -c ' from sys import version_info as vi; print(vi.major, vi.minor)' ` " == " 3 3" ]; then
46
+ echo Type checking lib-python...
47
+ echo
48
+ cd lib-python/3.2
49
+ for f in test/test_* .py; do
50
+ mod=test.` basename " $f " .py`
51
+ echo $mod
52
+ python " $DRIVER " -S -m $mod || fail
53
+ done
54
+ else
55
+ echo " Skipping lib-python type checks(Not Python 3.2!)"
56
+ fi
57
+
58
+ exit $result
You can’t perform that action at this time.
0 commit comments