@@ -3,43 +3,99 @@ version: 2.1
3
3
orbs :
4
4
win : circleci/windows@5.0 # The Windows orb gives you everything you need to start using the
5
5
6
+ commands :
7
+ install_dependencies :
8
+ parameters :
9
+ compiler :
10
+ default : " "
11
+ type : string
12
+ steps :
13
+ - run : chmod u+x install_dependencies.sh && ./install_dependencies.sh <<parameters.compiler>>
14
+ compile_tests :
15
+ parameters :
16
+ compiler :
17
+ default : " "
18
+ type : string
19
+ steps :
20
+ - run : chmod u+x compile_tests.sh && ./compile_tests.sh <<parameters.compiler>>
21
+ run_tests :
22
+ steps :
23
+ - run : pytest erpcgen/test/
24
+ - run : python3 test/run_unit_tests.py
25
+
6
26
jobs :
7
27
build-linux-gcc :
8
28
machine :
9
29
image : ubuntu-2204:2022.04.2 # https://circleci.com/developer/machine/image/ubuntu-2204 pick LTS
10
30
steps :
11
31
- checkout
12
- - run : chmod u+x install_dependencies.sh && ./install_dependencies.sh
13
- - run : chmod u+x run_tests.sh && ./run_tests.sh
32
+ - install_dependencies
33
+ - compile_tests
14
34
- store_artifacts :
15
35
path : ./Release/Linux/erpcgen/erpcgen
36
+ test-linux-gcc :
37
+ machine :
38
+ image : ubuntu-2204:2022.04.2 # https://circleci.com/developer/machine/image/ubuntu-2204 pick LTS
39
+ parallelism : 2
40
+ steps :
41
+ - checkout
42
+ - run_tests
43
+
16
44
build-linux-clang :
17
45
machine :
18
46
image : ubuntu-2204:2022.04.2 # https://circleci.com/developer/machine/image/ubuntu-2204 pick LTS
19
47
steps :
20
48
- checkout
21
- - run : chmod u+x install_dependencies.sh && ./install_dependencies.sh clang
22
- - run : chmod u+x run_tests.sh && ./run_tests.sh clang
49
+ - install_dependencies :
50
+ compiler : " clang"
51
+ - compile_tests :
52
+ compiler : " clang"
23
53
# - store_artifacts:
24
54
# path: ./Release/Linux/erpcgen/erpcgen
55
+ test-linux-clang :
56
+ machine :
57
+ image : ubuntu-2204:2022.04.2 # https://circleci.com/developer/machine/image/ubuntu-2204 pick LTS
58
+ parallelism : 2
59
+ steps :
60
+ - checkout
61
+ - run_tests
62
+
25
63
build-mac-gcc :
26
64
macos :
27
65
xcode : 12.5.1 # https://circleci.com/docs/using-macos/#supported-xcode-versions https://en.wikipedia.org/wiki/MacOS_version_history#Releases
28
66
resource_class : macos.x86.medium.gen2
29
67
steps :
30
68
- checkout
31
- - run : chmod u+x install_dependencies.sh && ./install_dependencies.sh
32
- - run : chmod u+x run_tests.sh && ./run_tests.sh
69
+ - install_dependencies
70
+ - compile_tests
33
71
- store_artifacts :
34
72
path : ./Release/Darwin/erpcgen/erpcgen
73
+ test-mac-gcc :
74
+ macos :
75
+ xcode : 12.5.1 # https://circleci.com/docs/using-macos/#supported-xcode-versions https://en.wikipedia.org/wiki/MacOS_version_history#Releases
76
+ parallelism : 2
77
+ steps :
78
+ - checkout
79
+ - run_tests
80
+
35
81
build-mac-clang :
36
82
macos :
37
83
xcode : 12.5.1 # https://circleci.com/docs/using-macos/#supported-xcode-versions https://en.wikipedia.org/wiki/MacOS_version_history#Releases
38
84
resource_class : macos.x86.medium.gen2
39
85
steps :
40
86
- checkout
41
- - run : chmod u+x install_dependencies.sh && ./install_dependencies.sh clang
42
- - run : chmod u+x run_tests.sh && ./run_tests.sh clang
87
+ - install_dependencies :
88
+ compiler : " clang"
89
+ - compile_tests :
90
+ compiler : " clang"
91
+ test-mac-clang :
92
+ macos :
93
+ xcode : 12.5.1 # https://circleci.com/docs/using-macos/#supported-xcode-versions https://en.wikipedia.org/wiki/MacOS_version_history#Releases
94
+ parallelism : 2
95
+ steps :
96
+ - checkout
97
+ - run_tests
98
+
43
99
# - store_artifacts:
44
100
# path: ./Release/Darwin/erpcgen/erpcgen
45
101
build-windows-mingw :
@@ -70,8 +126,20 @@ workflows:
70
126
build-workflow :
71
127
jobs :
72
128
- build-linux-gcc
129
+ - test-linux-gcc :
130
+ requires :
131
+ - build-linux-gcc
73
132
- build-linux-clang
133
+ - test-linux-clang :
134
+ requires :
135
+ - build-linux-clang
74
136
- build-mac-gcc
137
+ - test-mac-gcc :
138
+ requires :
139
+ - build-mac-gcc
75
140
- build-mac-clang
141
+ - test-mac-clang :
142
+ requires :
143
+ - build-mac-clang
76
144
- build-windows-mingw
77
145
- build-windows-VS
0 commit comments