Skip to content

Commit e952674

Browse files
committed
Bring parallelism into tests
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
1 parent 78569ac commit e952674

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

.circleci/config.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ jobs:
1010
steps:
1111
- checkout
1212
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh
13-
- run: chmod u+x run_tests.sh && ./run_tests.sh
13+
- run: chmod u+x compile_tests.sh && ./compile_tests.sh
14+
- parallelism: 2
15+
steps:
16+
- name: Run pytest
17+
command: pytest erpcgen/test/
18+
- name: Run unit tests
19+
command: python3 test/run_unit_tests.py
1420
- store_artifacts:
1521
path: ./Release/Linux/erpcgen/erpcgen
1622
build-linux-clang:
@@ -19,7 +25,13 @@ jobs:
1925
steps:
2026
- checkout
2127
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh clang
22-
- run: chmod u+x run_tests.sh && ./run_tests.sh clang
28+
- run: chmod u+x compile_tests.sh && ./compile_tests.sh clang
29+
- parallelism: 2
30+
steps:
31+
- name: Run pytest
32+
command: pytest erpcgen/test/
33+
- name: Run unit tests
34+
command: python3 test/run_unit_tests.py
2335
# - store_artifacts:
2436
# path: ./Release/Linux/erpcgen/erpcgen
2537
build-mac-gcc:
@@ -29,7 +41,13 @@ jobs:
2941
steps:
3042
- checkout
3143
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh
32-
- run: chmod u+x run_tests.sh && ./run_tests.sh
44+
- run: chmod u+x compile_tests.sh && ./compile_tests.sh
45+
- parallelism: 2
46+
steps:
47+
- name: Run pytest
48+
command: pytest erpcgen/test/
49+
- name: Run unit tests
50+
command: python3 test/run_unit_tests.py
3351
- store_artifacts:
3452
path: ./Release/Darwin/erpcgen/erpcgen
3553
build-mac-clang:
@@ -39,7 +57,14 @@ jobs:
3957
steps:
4058
- checkout
4159
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh clang
42-
- run: chmod u+x run_tests.sh && ./run_tests.sh clang
60+
- run: chmod u+x compile_tests.sh && ./compile_tests.sh clang
61+
- parallelism: 2
62+
steps:
63+
- name: Run pytest
64+
command: pytest erpcgen/test/
65+
- name: Run unit tests
66+
command: python3 test/run_unit_tests.py
67+
4368
# - store_artifacts:
4469
# path: ./Release/Darwin/erpcgen/erpcgen
4570
build-windows-mingw:

0 commit comments

Comments
 (0)