.gitlab-ci.yml 11.8 KB
Newer Older
1
# First version for AIR main source code
2
# Executed in TASTE VM centralized in 192.19.13.167
3
# author: dtms @GMV 2020
4

5 6 7
variables:
    GIT_CLEAN_FLAGS: none

Daniel Silveira's avatar
Daniel Silveira committed
8 9 10 11 12
stages:
    - build
    - examples
    - validation_tests

13 14 15 16 17 18
default:
    before_script:
        - cd air
        - pwd
        - ls
        - export RTEMS410=/opt/rtems-4.10/bin
19
        - export AIR=`pwd`
20 21 22 23 24 25 26 27
        - export PATH=$PATH:$AIR
        - export PATH=$PATH:$RTEMS410
        - export GIT_SSL_NO_VERIFY=1
        - export AIR_INSTALL=$AIR/install
        - export AIR_PMK=$AIR_INSTALL/pmk
        - export AIR_POS=$AIR_INSTALL/pos
        - export RTEMS_MAKEFILE_PATH=$AIR_POS/rtems5/rtems5-install/sparc-rtems5/leon3
        - export PATH=$PATH:/opt/rtems-5.1-2019.07.25/bin
28 29
        - export PATH=$PATH:/home/taste/work/gcc-arm-9.2-2019.12-x86_64-arm-none-eabi/bin
        - export PATH=/opt/rtems-5-arm/bin:$PATH
30 31 32
        - git submodule sync --recursive
        - git submodule update --init --recursive

33

34 35
#Cronological order of jobs to be done
#To be divided in the future in multiple VMs
Daniel Silveira's avatar
Daniel Silveira committed
36

37
#Build SPARC
38
config_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
39
    stage: build
Daniel Silveira's avatar
Daniel Silveira committed
40 41
    tags: 
        - sparc-taste-debian1
42
    script:
43
        - cp $AIR/../utils/gitlab-runner/.sparc_config .
44
        - ./configure -f .sparc_config
45 46

build_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
47
    stage: build
Daniel Silveira's avatar
Daniel Silveira committed
48 49
    tags: 
        - sparc-taste-debian1
50
    script:
Daniel Silveira's avatar
Daniel Silveira committed
51
        - make clean
52
        - make -j4
53

54
#Build for ARM
55
config_arm:
Daniel Silveira's avatar
Daniel Silveira committed
56
    stage: build
Daniel Silveira's avatar
Daniel Silveira committed
57 58
    tags: 
        - arm-taste-debian1
59
    script:
60
        -  cp $AIR/../utils/gitlab-runner/.arm_config . 
61
        - ./configure -f .arm_config
62

63
build_arm:
Daniel Silveira's avatar
Daniel Silveira committed
64
    stage: build
Daniel Silveira's avatar
Daniel Silveira committed
65 66
    tags: 
        - arm-taste-debian1
67
    script:
68
        - make clean # to be removed and used only on failure
69
        - make -j4
70

71 72 73 74 75 76
#clean_build_arm:
#    tags: 
#        - arm_qemu
#    stage: scleanbuild-arm
#    script:
#        - make clean
77
#        - make
78
#    when: on_failure
79 80 81


########################
82
#Example Tests for SPARC       #
83
########################
84
hello_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
85
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
86 87
    tags: 
        - sparc-taste-debian1
88 89 90 91 92 93 94 95
    script:
        - cd $AIR/examples/hello_world
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

Daniel Silveira's avatar
Daniel Silveira committed
96
hm_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
97
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
98 99
    tags: 
        - sparc-taste-debian1
100 101 102 103 104 105 106
    script:
        - cd $AIR/examples/hm
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
Daniel Silveira's avatar
Daniel Silveira committed
107 108 109 110 111 112 113 114 115 116 117 118 119

bare_sparc:
    stage: examples
    tags: 
        - sparc-taste-debian1
    script:
        - cd $AIR/examples/bare_c
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
        
120 121 122 123
########################
#Unit Tests for SPARC       #
########################

124

125
00009_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
126
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
127 128
    tags: 
        - sparc-taste-debian1
129 130 131
    script:
        - cd $AIR/examples/validation/TEST-DEF-00009
        - cp $AIR/../utils/gitlab-runner/* .
132 133 134 135 136 137
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00010_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
138
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
139 140
    tags: 
        - sparc-taste-debian1
141 142 143 144 145 146 147 148 149
    script:
        - cd $AIR/examples/validation/TEST-DEF-00010
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00012_sparc:
Daniel Silveira's avatar
Daniel Silveira committed
150
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
151 152
    tags: 
        - sparc-taste-debian1
153 154 155 156
    script:
        - cd $AIR/examples/validation/TEST-DEF-00012
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
157 158 159
        - cd $AIR
    environment:
        name: SPARC LEON4
160

161 162


163
00021_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
164
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
165 166
    tags: 
        - sparc-taste-debian1
167 168 169 170 171 172 173
    script:
        - cd $AIR/examples/validation/TEST-DEF-00021
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
174

175
00022_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
176
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
177 178
    tags: 
        - sparc-taste-debian1
179 180 181 182 183 184 185 186 187
    script:
        - cd $AIR/examples/validation/TEST-DEF-00022
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00023_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
188
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
189 190
    tags: 
        - sparc-taste-debian1
191 192 193 194 195 196 197
    script:
        - cd $AIR/examples/validation/TEST-DEF-00023
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
198

199
00500_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
200
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
201 202
    tags: 
        - sparc-taste-debian1
203 204 205 206 207 208 209 210 211
    script:
        - cd $AIR/examples/validation/TEST-DEF-00500
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00510_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
212
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
213 214
    tags: 
        - sparc-taste-debian1
215 216 217 218 219 220 221 222 223
    script:
        - cd $AIR/examples/validation/TEST-DEF-00510
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00540_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
224
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
225 226
    tags: 
        - sparc-taste-debian1
227 228 229 230 231 232 233 234 235
    script:
        - cd $AIR/examples/validation/TEST-DEF-00540
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

00560_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
236
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
237 238
    tags: 
        - sparc-taste-debian1
239 240 241 242 243 244 245 246
    script:
        - cd $AIR/examples/validation/TEST-DEF-00560
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

247
00600_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
248
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
249 250
    tags: 
        - sparc-taste-debian1
251 252 253 254 255 256 257 258
    script:
        - cd $AIR/examples/validation/TEST-DEF-00600
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

Daniel Silveira's avatar
Daniel Silveira committed
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
01390_sparc: 
    stage: validation_tests
    tags: 
        - sparc-taste-debian1
    script:
        - cd $AIR/examples/validation/TEST-DEF-01390
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

01561_sparc: 
    stage: validation_tests
    tags: 
        - sparc-taste-debian1
    script:
        - cd $AIR/examples/validation/TEST-DEF-01561
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

01570_sparc: 
    stage: validation_tests
    tags: 
        - sparc-taste-debian1
    script:
        - cd $AIR/examples/validation/TEST-DEF-01570
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

295
########################
296 297
#Tests for ARM         #
########################
298 299
#    tags: 
#        - arm_qemu
300

301
00001_arm:
Daniel Silveira's avatar
Daniel Silveira committed
302
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
303 304
    tags: 
        - arm-taste-debian1
305 306 307 308 309 310 311
    script:
        - cd $AIR/examples/arm_unit_tests/lionel
        - configure
        - make clean
        - make
        - cp $AIR/../utils/gitlab-runner/* .
        - ls
312
        - ./do_zynqz1_qemu.bash
313 314 315 316
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
317 318

hello_world_arm:
Daniel Silveira's avatar
Daniel Silveira committed
319
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
320 321 322 323 324 325 326 327 328 329 330 331 332 333
    tags: 
        - arm-taste-debian1
    script:
        - cd $AIR/examples/hello_world
        - configure
        - make clean
        - make
        - cp $AIR/../utils/gitlab-runner/* .
        - ls
        - ./do_zynqz1_qemu.bash
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517

#00009_arm:
#    stage: validation_tests
#    tags: 
#        - arm-taste-debian1
#    script:
#        - cd $AIR/examples/validation/TEST-DEF-00009
#        - cp $AIR/../utils/gitlab-runner/* .
#        - ./do_zynqz1_qemu.bash
#        - ./testcheck.py
#        - cd $AIR
#    environment:
#        name: ARM ZYNQZ1

#00010_arm:
#    stage: validation_tests
#    tags: 
#        - arm-taste-debian1
#    script:
#        - cd $AIR/examples/validation/TEST-DEF-00010
#        - cp $AIR/../utils/gitlab-runner/* .
#        - ./do_zynqz1_qemu.bash
#        - ./testcheck.py
#        - cd $AIR
#    environment:
#        name: ARM ZYNQZ1

#00012_arm:
#    stage: validation_tests
#    tags: 
#        - arm-taste-debian1
#    script:
#        - cd $AIR/examples/validation/TEST-DEF-00012
#        - cp $AIR/../utils/gitlab-runner/* .
#        - ./do_zynqz1_qemu.bash
#        - ./testcheck.py
#        - cd $AIR
#    environment:
#        name: ARM ZYNQZ1



#00021_arm: 
#    stage: validation_tests
#    tags: 
#        - arm-taste-debian1
#    script:
#        - cd $AIR/examples/validation/TEST-DEF-00021
#        - cp $AIR/../utils/gitlab-runner/* .
#        - ./do_zynqz1_qemu.bash
#        - ./testcheck.py
#        - cd $AIR
#    environment:
#        name: ARM ZYNQZ1

#00022_arm: 
#    stage: validation_tests
#    tags: 
#        - arm-taste-debian1
#    script:
#        - cd $AIR/examples/validation/TEST-DEF-00022
#        - cp $AIR/../utils/gitlab-runner/* .
#        - ./do_zynqz1_qemu.bash
#        - ./testcheck.py
#        - cd $AIR
#    environment:
#        name: ARM ZYNQZ1

#00023_arm: 
#    stage: validation_tests
#    tags: 
#        - arm-taste-debian1
#    script:
#        - cd $AIR/examples/validation/TEST-DEF-00023
#        - cp $AIR/../utils/gitlab-runner/* .
#        - ./do_zynqz1_qemu.bash
#        - ./testcheck.py
#        - cd $AIR
#    environment:
#        name: ARM ZYNQZ1

#00500_arm: 
#    stage: validation_tests
#    tags: 
#        - arm-taste-debian1
#    script:
#        - cd $AIR/examples/validation/TEST-DEF-00500
#        - cp $AIR/../utils/gitlab-runner/* .
#        - ./do_zynqz1_qemu.bash
#        - ./testcheck.py
#        - cd $AIR
#    environment:
#        name: ARM ZYNQZ1

00510_arm: 
    stage: validation_tests
    tags: 
        - arm-taste-debian1
    script:
        - cd $AIR/examples/validation/TEST-DEF-00510
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_zynqz1_qemu.bash
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1

00540_arm: 
    stage: validation_tests
    tags: 
        - arm-taste-debian1
    script:
        - cd $AIR/examples/validation/TEST-DEF-00540
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_zynqz1_qemu.bash
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1

00560_arm: 
    stage: validation_tests
    tags: 
        - arm-taste-debian1
    script:
        - cd $AIR/examples/validation/TEST-DEF-00560
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_zynqz1_qemu.bash
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1

#00600_arm: 
#    stage: validation_tests
#    tags: 
#        - arm-taste-debian1
#    script:
#        - cd $AIR/examples/validation/TEST-DEF-00600
#        - cp $AIR/../utils/gitlab-runner/* .
#        - ./do_zynqz1_qemu.bash
#        - ./testcheck.py
#        - cd $AIR
#    environment:
#        name: ARM ZYNQZ1

01390_arm: 
    stage: validation_tests
    tags: 
        - arm-taste-debian1
    script:
        - cd $AIR/examples/validation/TEST-DEF-01390
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_zynqz1_qemu.bash
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1

#01561_arm: 
#    stage: validation_tests
#    tags: 
#        - arm-taste-debian1
#    script:
#        - cd $AIR/examples/validation/TEST-DEF-01561
#        - cp $AIR/../utils/gitlab-runner/* .
#        - ./do_zynqz1_qemu.bash
#        - ./testcheck.py
#        - cd $AIR
#    environment:
#        name: ARM ZYNQZ1

#01570_arm: 
#    stage: validation_tests
#    tags: 
#        - arm-taste-debian1
#    script:
#        - cd $AIR/examples/validation/TEST-DEF-01570
#        - cp $AIR/../utils/gitlab-runner/* .
#        - ./do_zynqz1_qemu.bash
#        - ./testcheck.py
#        - cd $AIR
#    environment:
#        name: ARM ZYNQZ1