-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
72 lines (66 loc) · 1.86 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
# BXARM on Linux
# This workflow will run when a push is made to any branch in the repository
variables:
TARGET_DIR: '/opt/iarsystems/bxarm/arm/bin'
COMMON_DIR: '/opt/iarsystems/bxarm/common/bin'
build-library:
tags:
- self-hosted
stage: .pre
only:
- branches
needs: []
script:
- echo "Check compiler version..."
- $TARGET_DIR/iccarm --version
- echo "Build library..."
- $COMMON_DIR/iarbuild ./project/EWARM/ChecksumLibrary.ewp -make Debug -log all
artifacts:
paths:
- project/EWARM/Debug/Exe/ChecksumLibrary.a
expire_in: 1 week
# Comment out the `cstat-library` job if your license has no IAR C-STAT for static code analysis
cstat-library:
tags:
- self-hosted
stage: build
only:
- branches
needs: ["build-library"]
script:
- echo "Analyzing library..."
- $COMMON_DIR/iarbuild project/EWARM/ChecksumLibrary.ewp -cstat_analyze Debug -log all
- $COMMON_DIR/iarbuild project/EWARM/ChecksumLibrary.ewp -cstat_report Debug -log all
artifacts:
paths:
- project/EWARM/Debug/C-STAT/*.html
expire_in: 1 week
build-project:
tags:
- self-hosted
stage: build
only:
- branches
needs: ["build-library"]
script:
- echo "Building project..."
- $COMMON_DIR/iarbuild project/EWARM/project.ewp -make Debug -log all
artifacts:
paths:
- project/EWARM/Debug/Exe/project.out
# Comment out the `cstat-project` job if your license has no IAR C-STAT for static code analysis
cstat-project:
tags:
- self-hosted
stage: build
only:
- branches
needs: ["build-project"]
script:
- echo "Analyzing project..."
- $COMMON_DIR/iarbuild project/EWARM/project.ewp -cstat_analyze Debug -log all
- $COMMON_DIR/iarbuild project/EWARM/project.ewp -cstat_report Debug -log all
artifacts:
paths:
- project/EWARM/Debug/C-STAT/*.html
expire_in: 1 week