forked from falkenber9/falcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
154 lines (135 loc) · 4.58 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
stages:
- environment_base
- environment_variants
- build_variants
- unit_test
# - integration_test
- system_test
before_script:
- docker info
base_ubuntu:
stage: environment_base
only:
- schedules
script:
#- pwd
#- export
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/base-ubuntu
- docker rmi base_ubuntu:latest
- docker build --no-cache -t base_ubuntu:latest --target base_ubuntu .
base_ubuntu_srsgui:
stage: environment_base
only:
- schedules
script:
#- docker build -t $CI_REGISTRY_IMAGE:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHA}_base_ubuntu .
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/base-ubuntu
- docker rmi base_ubuntu_srsgui:latest
- docker build --no-cache -t base_ubuntu_srsgui:latest --target base_ubuntu_srsgui .
variant_minimal:
stage: environment_variants
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/variants
- docker rmi variant_minimal:latest
- docker build --no-cache -t variant_minimal:latest .
variant_minimal_srslte_subproj:
stage: environment_variants
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/variants
- docker rmi variant_minimal_srslte_subproj:latest
- docker build --no-cache -t variant_minimal_srslte_subproj:latest --build-arg INCLUDE_SRSLTE=false .
variant_cmnalib:
stage: environment_variants
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/variants
- docker rmi variant_cmnalib:latest
- docker build --no-cache -t variant_cmnalib:latest --build-arg INCLUDE_CMNALIB=true .
variant_cmnalib_uhd:
stage: environment_variants
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/variants
- docker rmi variant_cmnalib_uhd:latest
- docker build --no-cache -t variant_cmnalib_uhd:latest --build-arg INCLUDE_CMNALIB=true --build-arg INCLUDE_UHD=true .
variant_uhd:
stage: environment_variants
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/variants
- docker rmi variant_uhd:latest
- docker build --no-cache -t variant_uhd:latest --build-arg INCLUDE_UHD=true .
variant_full:
stage: environment_variants
only:
- schedules
script:
- cd $CI_PROJECT_DIR/_gitlab-ci/docker/variants
- docker rmi variant_full:latest
- docker build --no-cache -t variant_full:latest --build-arg INCLUDE_CMNALIB=true --build-arg INCLUDE_UHD=true --build-arg INCLUDE_LIMESDR=true .
#variant_noradio:
#stage: environment_variants
#script:
#- cd $CI_PROJECT_DIR/_gitlab-ci/docker/variant-noradio
#- docker build -t variant_noradio .
#variant_uhd:
#stage: environment_variants
#script:
#- cd $CI_PROJECT_DIR/_gitlab-ci/docker/variant-uhd
#- docker build -t variant_uhd .
#variant_allradio:
#stage: environment_variants
#script:
#- cd $CI_PROJECT_DIR/_gitlab-ci/docker/variant-allradio
#- docker build -t variant_allradio .
#build_environment_image:
#stage: setup
#script:
#- cd _gitlab-ci
#- docker build -t falcon-test .
#- docker run -v `pwd`/.:/test -i falcon-test /test/testscripts/./test_all.sh /falcon/build /tmp
#- echo "Tapa Tapa"
#- docker run hello-world
sys_minimal:
stage: system_test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- docker run --rm -v `pwd`/.:/falcon -v /tmp:/tmp/tmp-host -i variant_minimal:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp
sys_minimal_srslte_subproj:
stage: system_test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- docker run --rm -v `pwd`/.:/falcon -v /tmp:/tmp/tmp-host -i variant_minimal_srslte_subproj:latest /falcon/_gitlab-ci/testscripts/./test_build.sh ~/falcon-build /tmp
sys_cmnalib:
stage: system_test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- docker run --rm -v `pwd`/.:/falcon -i variant_cmnalib:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp
sys_cmnalib_uhd:
stage: system_test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- docker run --rm -v `pwd`/.:/falcon -i variant_cmnalib_uhd:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp
sys_uhd:
stage: system_test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- docker run --rm -v `pwd`/.:/falcon -i variant_uhd:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp
sys_full:
stage: system_test
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- docker run --rm -v `pwd`/.:/falcon -i variant_full:latest /falcon/_gitlab-ci/testscripts/./test_all.sh ~/falcon-build /tmp