File tree 4 files changed +12
-14
lines changed
4 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 1
- # https://github.com/CocoMake7/CocoBlockly/blob/master/.travis.yml
2
-
3
- # before_install:
4
1
install :
5
- # - brew update
6
- # - brew install python
7
2
- sudo apt-get install python3 -y
8
3
9
4
language : python
10
5
python :
11
6
- " 2.7"
12
- # command to install dependencies
13
- # install: "pip install -r requirements.txt"
14
- # command to run tests
7
+
15
8
script : bash unit.sh
Original file line number Diff line number Diff line change 1
1
echo ' Hello from travis..'
2
2
pwd
3
+ echo " Running Python 3 Unit Tests"
3
4
cd unit3
4
5
python3 unit.py
5
6
rm cover* jpg
6
7
8
+ echo " Running Python 2 Unit Tests"
7
9
cd ../unit2
8
10
python3 unit.py
9
11
rm cover* jpg
Original file line number Diff line number Diff line change 78
78
continue
79
79
80
80
fail = fail + 1
81
- print (cmd )
81
+ print ('*** FAIL2 ***' , cmd )
82
82
83
- print ('Tests passed:' ,success )
84
- print ('Tests failed:' ,fail )
83
+ print ('Tests 2 passed:' ,success )
84
+ print ('Tests 2 failed:' ,fail )
85
85
if ( len (failures ) > 0 ) : print ('Unit Test TODO:' ,failures )
86
86
os .system ("rm *.sqlite" )
87
87
Original file line number Diff line number Diff line change 33
33
fail = 0
34
34
codefolder = '../code3'
35
35
36
+ print ('======== Starting Python 3 Tests ==============' )
37
+
38
+
36
39
for i in os .listdir (codefolder ):
37
40
if not i .endswith (".py" ):
38
41
continue
71
74
continue
72
75
73
76
fail = fail + 1
74
- print (cmd )
77
+ print ('*** FAIL3 ***' , cmd )
75
78
76
- print ('Tests passed:' ,success )
77
- print ('Tests failed:' ,fail )
79
+ print ('Tests 3 passed:' ,success )
80
+ print ('Tests 3 failed:' ,fail )
78
81
if ( len (failures ) > 0 ) : print ('Unit Test TODO:' ,failures )
79
82
os .system ("rm *.sqlite" )
80
83
os .system ("rm cover3.jpg" )
You can’t perform that action at this time.
0 commit comments