-
Notifications
You must be signed in to change notification settings - Fork 18
/
.gitlab-ci.yml
173 lines (158 loc) · 5.46 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
stages:
- create_vis
- configure_docker
- build
- test_linux
- test_fuzz
create_vis:
stage: create_vis
script:
- echo "Creating Visualizations"
- whoami
- pwd
- cd $HOME/Analyse/SUCHAI-Flight-Software
- git pull origin master
- last_commit=`git log -1 --pretty=%h`
- echo $last_commit
- cd ../Analyse
- python3 suchai_analysis.py ../SUCHAI-Flight-Software --hash $last_commit --svg
- commit_file=`find . -maxdepth 1 -name "*\$last_commit.html" -print`
- svg_file=`find . -maxdepth 1 -name "*\$last_commit.svg" -print`
- cp -f $commit_file /home/ubuntu/SpelDataServer/public/viz_html/
- rm $commit_file
- echo http://data.spel.cl/viz_html${commit_file#"."}
- cp -f $svg_file /home/ubuntu/SpelDataServer/public/viz_svg/
- cp -f $svg_file /home/ubuntu/SpelDataServer/public/viz_svg/last.svg
- rm $svg_file
- echo http://data.spel.cl/viz_svg${svg_file#"."}
only:
- master
configure_docker:
stage: configure_docker
script:
- echo "Configure docker image"
- cd $HOME/suchai-docker
- git pull
- cd suchai-fs
- docker build --no-cache -t suchai-fs .
- docker system prune -f
rules:
- if: '$CI_COMMIT_BRANCH == "feature/framework"'
- if: '$CI_COMMIT_BRANCH == "master"'
build_linux:
stage: build
script:
- echo "Building in Linux"
- echo "Going to execute the following commands" && docker run -i suchai-fs cat install_build_linux.sh
- docker run -v ~/.ssh:/root/.ssh -i suchai-fs sh install_build_linux.sh
- docker system prune -f
only:
- master
build_esp:
stage: build
script:
- echo "Building in esp32"
- echo "Going to execute the following commands" && docker run -i suchai-fs cat install_build_esp32.sh
- docker run -v ~/.ssh:/root/.ssh -i suchai-fs sh install_build_linux.sh
- docker system prune -f
only:
- master
build_nanomind:
stage: build
script:
- echo "Building in nanomind"
- echo "Going to execute the following commands" && docker run -i suchai-fs cat install_build_nanomind.sh
- docker run -v ~/.ssh:/root/.ssh -i suchai-fs sh install_build_nanomind.sh
- docker system prune -f
only:
- master
test_unit_feature_framework:
stage: test_linux
script:
- echo "Unit testing of the feature/framework branch in Linux"
- echo "Going to execute the following commands" && docker run -i suchai-fs cat install_test_linux_framework.sh
- docker run -v ~/.ssh:/root/.ssh -i suchai-fs sh install_test_linux_framework.sh test_unit
- docker system prune -f
rules:
- if: '$CI_COMMIT_BRANCH == "feature/framework"'
test_integration_feature_framework:
stage: test_linux
script:
- echo "Integration testing of the feature/framework branch in Linux"
- echo "Going to execute the following commands" && docker run -i suchai-fs cat install_test_linux_framework.sh
- docker run -v ~/.ssh:/root/.ssh -i suchai-fs sh install_test_linux_framework.sh test_int
- docker system prune -f
rules:
- if: '$CI_COMMIT_BRANCH == "feature/framework"'
test_cmd:
stage: test_linux
script:
- echo "Testing in Linux"
- echo "Going to execute the following commands" && docker run -i suchai-fs cat install_test_linux.sh
- docker run -v ~/.ssh:/root/.ssh -i suchai-fs sh install_test_linux.sh test_cmd
- docker system prune -f
only:
- master
test_unit:
stage: test_linux
script:
- echo "Testing in Linux"
- echo "Going to execute the following commands" && docker run -i suchai-fs cat install_test_linux.sh
- cd $HOME/suchai-docker
- docker-compose -f sat-gnd-com.yml run suchai_sat sh install_test_linux.sh test_unit
- docker-compose -f sat-gnd-com.yml down
- docker system prune -f
only:
- master
test_load:
stage: test_linux
script:
- echo "Testing in Linux"
- echo "Going to execute the following commands" && docker run -i suchai-fs cat install_test_linux.sh
- docker run -v ~/.ssh:/root/.ssh -i suchai-fs sh install_test_linux.sh test_load
- docker system prune -f
only:
- master
test_bug_delay:
stage: test_linux
script:
- echo "Testing in Linux"
- echo "Going to execute the following commands" && docker run -i suchai-fs cat install_test_linux.sh
- docker run -v ~/.ssh:/root/.ssh -i suchai-fs sh install_test_linux.sh test_bug_delay
- docker system prune -f
only:
- master
test_sgp4:
stage: test_linux
script:
- echo "Testing in Linux"
- echo "Going to execute the following commands" && docker run -i suchai-fs cat install_test_linux.sh
- docker run -v ~/.ssh:/root/.ssh -i suchai-fs sh install_test_linux.sh test_sgp4
- docker system prune -f
only:
- master
test_sequences:
stage: test_linux
script:
- echo "Testing in Linux"
- echo "Going to execute the following commands" && docker run -i suchai-fs cat install_test_linux.sh
- cd $HOME/suchai-docker
- docker-compose -f sat-gnd-com.yml run suchai_sat sh install_test_linux.sh test_fuzz
- docker-compose -f sat-gnd-com.yml down
- docker system prune -f
only:
- master
test_fuzzing:
stage: test_fuzz
script:
- docker run -v ~/.ssh:/root/.ssh -i suchai-fs bash install_test_fuzzy-framework.sh
- docker system prune -f
rules:
- if: '$CI_COMMIT_BRANCH == "feature/framework"'
test_build_framework:
stage: build
script:
- docker run -v ~/.ssh:/root/.ssh -i suchai-fs sh install_build_framework.sh
- docker system prune -f
rules:
- if: '$CI_COMMIT_BRANCH == "feature/framework"'