-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (37 loc) · 1.26 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
# See aruw-mcb for Dockerfile associated with the default image
default:
image: aruw/mcb-2020-gitlab-ci:2021-06-02.1
variables:
GIT_SUBMODULE_STRATEGY: recursive
DEFAULT_BUILD_ELF_FILE: build/hardware/release/aruw-mcb.elf
NUM_JOBS: 4
.default_only: &default_only
- merge_requests
- master
- develop
stages:
- Verification
clang-format:
stage: Verification
script:
- "python3 /run-clang-format.py --clang-format-executable clang-format-10 -r \
aruw-edu-project/src/ \
aruw-edu-project/test/ \
aruw-edu-project/solutions"
only: *default_only
Soldier Build:
stage: Verification
script:
- cd aruw-edu-project
- python3 $(which scons) build robot=TARGET_SOLDIER -j${NUM_JOBS}
- python3 $(which scons) build-sim robot=TARGET_SOLDIER -j${NUM_JOBS}
- python3 $(which scons) build-tests robot=TARGET_SOLDIER -j${NUM_JOBS}
only: *default_only
Soldier Solutions Build:
stage: Verification
script:
- cd aruw-edu-project
- python3 $(which scons) build robot=TARGET_SOLDIER use-solutions=true -j${NUM_JOBS}
- python3 $(which scons) build-sim robot=TARGET_SOLDIER use-solutions=true -j${NUM_JOBS}
- python3 $(which scons) run-tests robot=TARGET_SOLDIER use-solutions=true -j${NUM_JOBS}
only: *default_only