-
Notifications
You must be signed in to change notification settings - Fork 74
/
.gitlab-ci.yml
128 lines (109 loc) · 5.17 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
stages:
- Prepare
- Environment
- Build_and_Test
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- _gitlab-ci/testdata
before_script:
- docker info
P_Testdata:
stage: Prepare
only:
- schedules
script:
- rm -rf _gitlab-ci/testdata
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.kn.e-technik.tu-dortmund.de/falkenberg/falcon-testdata.git _gitlab-ci/testdata
E_Arch:
stage: Environment
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/Archlinux
- docker rmi ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/archlinux_base:latest || true
- docker build --no-cache -t ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/archlinux_base:latest --target archlinux_base --build-arg OS_VERSION=latest .
E_Ubnt20_full:
stage: Environment
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/Ubuntu
- docker rmi ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt20_full:latest || true
- docker build --no-cache -t ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt20_full:latest --build-arg OS_VERSION=focal --build-arg INCLUDE_CMNALIB=true --build-arg INCLUDE_UHD=true --build-arg INCLUDE_LIMESDR=true .
E_Ubnt18_minimal:
stage: Environment
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/Ubuntu
- docker rmi ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_minimal:latest || true
- docker build --no-cache -t ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_minimal:latest --build-arg OS_VERSION=bionic .
E_Ubnt18_minimal_embed_srslte:
stage: Environment
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/Ubuntu
- docker rmi ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_minimal_embed_srslte:latest || true
- docker build --no-cache -t ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_minimal_embed_srslte:latest --build-arg OS_VERSION=bionic --build-arg INCLUDE_SRSLTE=false .
E_Ubnt18_cmnalib:
stage: Environment
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/Ubuntu
- docker rmi ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_cmnalib:latest || true
- docker build --no-cache -t ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_cmnalib:latest --build-arg OS_VERSION=bionic --build-arg INCLUDE_CMNALIB=true .
E_Ubnt18_cmnalib_uhd:
stage: Environment
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/Ubuntu
- docker rmi ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_cmnalib_uhd:latest || true
- docker build --no-cache -t ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_cmnalib_uhd:latest --build-arg OS_VERSION=bionic --build-arg INCLUDE_CMNALIB=true --build-arg INCLUDE_UHD=true .
E_Ubnt18_uhd:
stage: Environment
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/Ubuntu
- docker rmi ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_uhd:latest || true
- docker build --no-cache -t ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_uhd:latest --build-arg OS_VERSION=bionic --build-arg INCLUDE_UHD=true .
E_Ubnt18_full:
stage: Environment
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/Ubuntu
- docker rmi ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_full:latest || true
- docker build --no-cache -t ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_full:latest --build-arg OS_VERSION=bionic --build-arg INCLUDE_CMNALIB=true --build-arg INCLUDE_UHD=true --build-arg INCLUDE_LIMESDR=true .
B_Arch:
stage: Build_and_Test
script:
- docker run --rm -v `pwd`/.:/falcon -v /tmp:/tmp/tmp-host -i ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/archlinux_base:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp
B_Ubnt20_full:
stage: Build_and_Test
script:
- docker run --rm -v `pwd`/.:/falcon -v /tmp:/tmp/tmp-host -i ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt20_full:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp
B_Ubnt18_minimal:
stage: Build_and_Test
script:
- docker run --rm -v `pwd`/.:/falcon -v /tmp:/tmp/tmp-host -i ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_minimal:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp
B_Ubnt18_minimal_embed_srslte:
stage: Build_and_Test
script:
- docker run --rm -v `pwd`/.:/falcon -v /tmp:/tmp/tmp-host -i ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_minimal_embed_srslte:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp
B_Ubnt18_cmnalib:
stage: Build_and_Test
script:
- docker run --rm -v `pwd`/.:/falcon -v /tmp:/tmp/tmp-host -i ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_cmnalib:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp
B_Ubnt18_cmnalib_uhd:
stage: Build_and_Test
script:
- docker run --rm -v `pwd`/.:/falcon -v /tmp:/tmp/tmp-host -i ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_cmnalib_uhd:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp
B_Ubnt18_full:
stage: Build_and_Test
script:
- docker run --rm -v `pwd`/.:/falcon -v /tmp:/tmp/tmp-host -i ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/ubnt18_full:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp