-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitlab-ci.yml
98 lines (93 loc) · 2.55 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# fetch submodules
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages: # List of stages for jobs, and their order of execution
- deps
- test
deps-job:
stage: deps
tags:
- ssh
- mitosis
script:
- chmod +x ci/install_deps.sh
- ./ci/install_deps.sh
timeout: 30 minutes
after_script:
- bash ci/check_kernel.sh $TEST_MACHINE $REBOOT_USER $REBOOT_PWD
- bash ci/check_module_exist.sh $TEST_MACHINE $REBOOT_USER $REBOOT_PWD
only:
refs:
- branches
- merge_requests
changes:
- mitosis/**/*
- mitosis-macros/**/*
- mitosis-util/**/*
- os-network/**/*
unittest-mitosis-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
tags:
- ssh
- mitosis
script:
- echo "Running unit tests on mitosis"
- sudo dmesg -C
- python3 mitosis/unitests/run_tests.py
timeout: 30 minutes
after_script:
- bash ci/check_kernel.sh $TEST_MACHINE $REBOOT_USER $REBOOT_PWD
- bash ci/check_module_exist.sh $TEST_MACHINE $REBOOT_USER $REBOOT_PWD
only:
refs:
- branches
- merge_requests
changes:
- mitosis/**/*
- mitosis-macros/**/*
- mitosis-util/**/*
- os-network/**/*
unittest-os-network-job: # This job also runs in the test stage.
stage: test # It can run at the same time as unit-test-job (in parallel).
tags:
- ssh
- mitosis
script:
- echo "Running unit tests on os-network"
- sudo dmesg -C
- python3 os-network/unitests/run_tests.py
timeout: 30 minutes
after_script:
- bash ci/check_kernel.sh $TEST_MACHINE $REBOOT_USER $REBOOT_PWD
- bash ci/check_module_exist.sh $TEST_MACHINE $REBOOT_USER $REBOOT_PWD
only:
refs:
- branches
- merge_requests
changes:
- mitosis/**/*
- mitosis-macros/**/*
- mitosis-util/**/*
- os-network/**/*
unittest-mitosis-macros-job: # This job also runs in the test stage.
stage: test # It can run at the same time as unit-test-job (in parallel).
tags:
- ssh
- mitosis
script:
- echo "Running unit tests on mitosis-macros"
- sudo dmesg -C
- python3 mitosis-macros/unitests/run_tests.py
timeout: 30 minutes
after_script:
- bash ci/check_kernel.sh $TEST_MACHINE $REBOOT_USER $REBOOT_PWD
- bash ci/check_module_exist.sh $TEST_MACHINE $REBOOT_USER $REBOOT_PWD
only:
refs:
- branches
- merge_requests
changes:
- mitosis/**/*
- mitosis-macros/**/*
- mitosis-util/**/*
- os-network/**/*