-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
39 lines (35 loc) · 813 Bytes
/
.gitlab-ci.yml
File metadata and controls
39 lines (35 loc) · 813 Bytes
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
variables:
GITLAB_CI_IMAGE_GCC: 'gcc:10.2'
GITLAB_CI_IMAGE_ALPINE: 'alpine:3.15.3'
GIT_SUBMODULE_STRATEGY: recursive
stages:
- static
- build
include:
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
# 'static' stage
style:
stage: static
needs: []
image: ${GITLAB_CI_IMAGE_GCC}
before_script:
- apt-get -q update
- apt-get -qy install astyle
script:
- 'astyle --dry-run --options=.astylerc --formatted include/*.h src/*.c | sed ''s/^Formatted/ERROR: Unformatted/;T;q1'''
# 'build' stage
build:
stage: build
needs: []
image: ${GITLAB_CI_IMAGE_GCC}
before_script:
- apt -q update
- apt -qy install cmake make autoconf gcc-arm-none-eabi
script:
- cmake .
- make
artifacts:
expire_in: 1 week
when: always
paths:
- "*.so"