@@ -2,12 +2,13 @@ version: 2.1
22
33orbs :
44 windows :
circleci/[email protected] 5+ 6+ python :
circleci/[email protected] 57
68jobs :
7- build-and-test-windows :
9+ build-and-test-windows-dev :
810 executor :
911 name : windows/default
10- size : medium
1112 shell : powershell.exe
1213
1314 steps :
@@ -18,72 +19,150 @@ jobs:
1819 name : pip dev_requirements.txt
1920 # screen test
2021 - run :
21- command : python ./circle_ci_test /unit_test/screen/screen_test.py
22+ command : python ./circle_ci_test_dev /unit_test/screen/screen_test.py
2223 name : screen_test
2324 - run :
24- command : python ./circle_ci_test /unit_test/screen/screenshot_test.py
25+ command : python ./circle_ci_test_dev /unit_test/screen/screenshot_test.py
2526 name : screenshot_test
2627 # keyboard test
2728 - run :
28- command : python ./circle_ci_test /unit_test/keyboard/keyboard_type_test.py
29+ command : python ./circle_ci_test_dev /unit_test/keyboard/keyboard_type_test.py
2930 name : keyboard_type_test
3031 - run :
31- command : python ./circle_ci_test /unit_test/keyboard/keyboard_write_test.py
32+ command : python ./circle_ci_test_dev /unit_test/keyboard/keyboard_write_test.py
3233 name : keyboard_write_test
3334 - run :
34- command : python ./circle_ci_test /unit_test/keyboard/keyboard_is_press_test.py
35+ command : python ./circle_ci_test_dev /unit_test/keyboard/keyboard_is_press_test.py
3536 name : keyboard_is_press_test
3637 - run :
37- command : python ./circle_ci_test /unit_test/keyboard/hotkey_test.py
38+ command : python ./circle_ci_test_dev /unit_test/keyboard/hotkey_test.py
3839 name : hotkey_test
3940 # mouse test
4041 - run :
41- command : python ./circle_ci_test /unit_test/mouse/mouse_test.py
42+ command : python ./circle_ci_test_dev /unit_test/mouse/mouse_test.py
4243 name : mouse_test
4344 - run :
44- command : python ./circle_ci_test /unit_test/mouse/mouse_scroll_test.py
45+ command : python ./circle_ci_test_dev /unit_test/mouse/mouse_scroll_test.py
4546 name : scroll_test
4647 # exception test
4748 - run :
48- command : python ./circle_ci_test /unit_test/exception/test_auto_control_exception.py
49+ command : python ./circle_ci_test_dev /unit_test/exception/test_auto_control_exception.py
4950 name : test_auto_control_exception
5051 # critical exit
5152 - run :
52- command : python ./circle_ci_test /unit_test/critical_exit/critical_exit_test.py
53+ command : python ./circle_ci_test_dev /unit_test/critical_exit/critical_exit_test.py
5354 name : critical_exit_test
5455 - run :
55- command : python ./circle_ci_test /unit_test/critical_exit/real_critical_test.py
56+ command : python ./circle_ci_test_dev /unit_test/critical_exit/real_critical_test.py
5657 name : real_critical_test
5758 # record
5859 - run :
59- command : python ./circle_ci_test /unit_test/record/record_test.py
60+ command : python ./circle_ci_test_dev /unit_test/record/record_test.py
6061 name : record_test
6162 # execute
6263 - run :
63- command : python ./circle_ci_test /unit_test/execute_action/execute_action_test.py
64+ command : python ./circle_ci_test_dev /unit_test/execute_action/execute_action_test.py
6465 name : execute_action_test
6566 # json
6667 - run :
67- command : python ./circle_ci_test /unit_test/json/json_test.py
68+ command : python ./circle_ci_test_dev /unit_test/json/json_test.py
6869 name : json_test
6970 # timeout
7071 - run :
71- command : python ./circle_ci_test /unit_test/timeout/timeout_test.py
72+ command : python ./circle_ci_test_dev /unit_test/timeout/timeout_test.py
7273 name : timeout_test
73- # GUI Test
74+ # GUI Test
7475 # image detect
7576 - run :
76- command : python ./circle_ci_test /gui_test/image/locate_all_image_test.py
77+ command : python ./circle_ci_test_dev /gui_test/image/locate_all_image_test.py
7778 name : locate_all_image_test
7879 - run :
79- command : python ./circle_ci_test /gui_test/image/locate_and_click_test.py
80+ command : python ./circle_ci_test_dev /gui_test/image/locate_and_click_test.py
8081 name : locate_and_click_test
8182 - run :
82- command : python ./circle_ci_test/gui_test/image/locate_image_center_test.py
83+ command : python ./circle_ci_test_dev/gui_test/image/locate_image_center_test.py
84+ name : locate_image_center_test
85+ build-and-test-windows-stable :
86+ executor :
87+ name : windows/default
88+ shell : powershell.exe
89+
90+ steps :
91+ - checkout
92+ # pip require package
93+ - run :
94+ command : pip install --user -r requirements.txt
95+ name : pip dev_requirements.txt
96+ # screen test
97+ - run :
98+ command : python ./circle_ci_test_stable/unit_test/screen/screen_test.py
99+ name : screen_test
100+ - run :
101+ command : python ./circle_ci_test_stable/unit_test/screen/screenshot_test.py
102+ name : screenshot_test
103+ # keyboard test
104+ - run :
105+ command : python ./circle_ci_test_stable/unit_test/keyboard/keyboard_type_test.py
106+ name : keyboard_type_test
107+ - run :
108+ command : python ./circle_ci_test_stable/unit_test/keyboard/keyboard_write_test.py
109+ name : keyboard_write_test
110+ - run :
111+ command : python ./circle_ci_test_stable/unit_test/keyboard/keyboard_is_press_test.py
112+ name : keyboard_is_press_test
113+ - run :
114+ command : python ./circle_ci_test_stable/unit_test/keyboard/hotkey_test.py
115+ name : hotkey_test
116+ # mouse test
117+ - run :
118+ command : python ./circle_ci_test_stable/unit_test/mouse/mouse_test.py
119+ name : mouse_test
120+ - run :
121+ command : python ./circle_ci_test_stable/unit_test/mouse/mouse_scroll_test.py
122+ name : scroll_test
123+ # exception test
124+ - run :
125+ command : python ./circle_ci_test_stable/unit_test/exception/test_auto_control_exception.py
126+ name : test_auto_control_exception
127+ # critical exit
128+ - run :
129+ command : python ./circle_ci_test_stable/unit_test/critical_exit/critical_exit_test.py
130+ name : critical_exit_test
131+ - run :
132+ command : python ./circle_ci_test_stable/unit_test/critical_exit/real_critical_test.py
133+ name : real_critical_test
134+ # record
135+ - run :
136+ command : python ./circle_ci_test_stable/unit_test/record/record_test.py
137+ name : record_test
138+ # execute
139+ - run :
140+ command : python ./circle_ci_test_stable/unit_test/execute_action/execute_action_test.py
141+ name : execute_action_test
142+ # json
143+ - run :
144+ command : python ./circle_ci_test_stable/unit_test/json/json_test.py
145+ name : json_test
146+ # timeout
147+ - run :
148+ command : python ./circle_ci_test_stable/unit_test/timeout/timeout_test.py
149+ name : timeout_test
150+ # GUI Test
151+ # image detect
152+ - run :
153+ command : python ./circle_ci_test_stable/gui_test/image/locate_all_image_test.py
154+ name : locate_all_image_test
155+ - run :
156+ command : python ./circle_ci_test_stable/gui_test/image/locate_and_click_test.py
157+ name : locate_and_click_test
158+ - run :
159+ command : python ./circle_ci_test_stable/gui_test/image/locate_image_center_test.py
83160 name : locate_image_center_test
84161
85162workflows :
86163 main :
87164 jobs :
88- - build-and-test-windows
89-
165+ - build-and-test-windows-dev
166+ - build-and-test-windows-stable :
167+ requires :
168+ - build-and-test-windows-dev
0 commit comments