.gitlab-ci.yml 14 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 83
##########################
#Example Tests for SPARC #
##########################
84
hello_sparc:
85 86 87 88 89 90 91 92 93 94
   stage: examples
   tags: 
       - sparc-taste-debian1
   script:
       - cd $AIR/examples/hello_world
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_leon4_grmon.bash
       - cd $AIR
   environment:
       name: SPARC LEON4
95

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

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
119

120 121
math:
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
122 123
    tags: 
        - sparc-taste-debian1
124
    script:
125
        - cd $AIR/examples/math
126
        - cp $AIR/../utils/gitlab-runner/* .
127 128 129 130 131
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

132 133
ports:
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
134 135
    tags: 
        - sparc-taste-debian1
136
    script:
137
        - cd $AIR/examples/ports
138 139 140 141 142 143
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

144 145
gcov5:
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
146 147
    tags: 
        - sparc-taste-debian1
148
    script:
149
        - cd $AIR/examples/gcov5
150 151
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
152 153 154
        - cd $AIR
    environment:
        name: SPARC LEON4
155

156 157
paranoia:
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
158 159
    tags: 
        - sparc-taste-debian1
160
    script:
161
        - cd $AIR/examples/testsuites/paranoia
162 163 164 165 166
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
167

168 169
smp01:
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
170 171
    tags: 
        - sparc-taste-debian1
172
    script:
173
        - cd $AIR/examples/testsuites/smp01
174 175 176 177 178 179
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

180 181
smp02:
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
182 183
    tags: 
        - sparc-taste-debian1
184
    script:
185
        - cd $AIR/examples/testsuites/smp02
186 187 188 189 190
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4
191

192 193
shm:
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
194 195
    tags: 
        - sparc-taste-debian1
196
    script:
197
        - cd $AIR/examples/shm
198 199 200 201 202 203
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

204

205
########################
206
#Unit Tests for SPARC  #
207 208 209 210 211 212 213 214
########################


00009_sparc:
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
215
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00009
216 217 218 219 220 221 222 223 224 225 226
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_leon4_grmon.bash
       - cd $AIR
   environment:
       name: SPARC LEON4

00010_sparc:
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
227
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00010
228 229 230 231 232 233 234
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_leon4_grmon.bash
       - cd $AIR
   environment:
       name: SPARC LEON4

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

246 247 248 249 250 251 252


00021_sparc: 
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
253
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00021
254 255 256 257 258 259 260 261 262 263 264
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_leon4_grmon.bash
       - cd $AIR
   environment:
       name: SPARC LEON4

00022_sparc: 
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
265
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00022
266 267 268 269 270 271 272
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_leon4_grmon.bash
       - cd $AIR
   environment:
       name: SPARC LEON4

00023_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
273
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
274 275
    tags: 
        - sparc-taste-debian1
276
    script:
277
        - cd $AIR/examples/private-example/private/validation/TEST-DEF-00023
278 279 280 281 282 283
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

284 285 286 287 288
00500_sparc: 
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
289
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00500
290 291 292 293 294 295 296 297 298 299 300
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_leon4_grmon.bash
       - cd $AIR
   environment:
       name: SPARC LEON4

00510_sparc: 
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
301
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00510
302 303 304 305 306 307 308 309 310 311 312
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_leon4_grmon.bash
       - cd $AIR
   environment:
       name: SPARC LEON4

00540_sparc: 
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
313
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00540
314 315 316 317 318 319
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_leon4_grmon.bash
       - cd $AIR
   environment:
       name: SPARC LEON4

320
00560_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
321
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
322 323
    tags: 
        - sparc-taste-debian1
324
    script:
325
        - cd $AIR/examples/private-example/private/validation/TEST-DEF-00560
326 327 328 329 330 331
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

332
00600_sparc: 
Daniel Silveira's avatar
Daniel Silveira committed
333
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
334 335
    tags: 
        - sparc-taste-debian1
336
    script:
337
        - cd $AIR/examples/private-example/private/validation/TEST-DEF-00600
338 339 340 341 342 343
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

Daniel Silveira's avatar
Daniel Silveira committed
344
01390_sparc: 
345 346 347 348
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
349
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-01390
350 351 352 353 354
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_leon4_grmon.bash
       - cd $AIR
   environment:
       name: SPARC LEON4
Daniel Silveira's avatar
Daniel Silveira committed
355 356

01561_sparc: 
357 358 359 360
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
361
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-01561
362 363 364 365 366
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_leon4_grmon.bash
       - cd $AIR
   environment:
       name: SPARC LEON4
Daniel Silveira's avatar
Daniel Silveira committed
367 368 369 370 371 372

01570_sparc: 
    stage: validation_tests
    tags: 
        - sparc-taste-debian1
    script:
373
        - cd $AIR/examples/private-example/private/validation/TEST-DEF-01570
Daniel Silveira's avatar
Daniel Silveira committed
374 375 376 377 378 379
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_leon4_grmon.bash
        - cd $AIR
    environment:
        name: SPARC LEON4

380
########################
381 382
#Tests for ARM         #
########################
383 384 385 386

##########################
#Example Tests for ARM   #
##########################
387

388
00001_arm:
Daniel Silveira's avatar
Daniel Silveira committed
389
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
390 391
    tags: 
        - arm-taste-debian1
392
    script:
393
        - cd $AIR/examples/private-example/private/arm_unit_tests/lionel
394 395
        - cp $AIR/../utils/gitlab-runner/* .
        - ls
396
        - ./do_zynqz1_qemu.bash
397 398 399 400
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
401 402

hello_world_arm:
Daniel Silveira's avatar
Daniel Silveira committed
403
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
404 405 406 407 408 409 410 411 412 413 414
    tags: 
        - arm-taste-debian1
    script:
        - cd $AIR/examples/hello_world
        - 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
415

416 417 418 419
########################
#Unit Tests for ARM    #
########################

420
00009_arm:
Daniel Silveira's avatar
Daniel Silveira committed
421 422 423 424
    stage: validation_tests
    tags: 
        - arm-taste-debian1
    script:
425
        - cd $AIR/examples/private-example/private/validation/TEST-DEF-00009
Daniel Silveira's avatar
Daniel Silveira committed
426 427 428 429 430 431 432
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_zynqz1_qemu.bash
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1

433 434 435 436 437
00010_arm:
   stage: validation_tests
   tags: 
       - arm-taste-debian1
   script:
438
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00010
439 440 441 442 443 444 445 446 447 448 449 450
       - 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:
451
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00012
452 453 454 455 456 457 458 459 460 461 462 463 464 465
       - 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:
466
       #- cd $AIR/examples/private-example/private/validation/TEST-DEF-00021
467 468 469 470 471 472 473 474 475 476 477 478
       #- 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:
479
       #- cd $AIR/examples/private-example/private/validation/TEST-DEF-00022
480 481 482 483 484 485 486 487 488 489 490 491
       #- 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:
492
       #- cd $AIR/examples/private-example/private/validation/TEST-DEF-00023
493 494 495 496 497 498 499 500 501 502 503 504
       #- 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:
505
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00500
506 507 508 509 510 511 512 513 514 515 516 517
       - 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:
518
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00510
519 520 521 522 523 524 525
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_zynqz1_qemu.bash
       - ./testcheck.py
       - cd $AIR
   environment:
       name: ARM ZYNQZ1

Daniel Silveira's avatar
Daniel Silveira committed
526
00540_arm: 
527 528 529 530
   stage: validation_tests
   tags: 
       - arm-taste-debian1
   script:
531
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00540
532 533 534 535 536 537
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_zynqz1_qemu.bash
       - ./testcheck.py
       - cd $AIR
   environment:
       name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
538 539

00560_arm: 
540 541 542 543
   stage: validation_tests
   tags: 
       - arm-taste-debian1
   script:
544
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-00560
545 546 547 548 549 550
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_zynqz1_qemu.bash
       - ./testcheck.py
       - cd $AIR
   environment:
       name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
551 552

#00600_arm: 
553 554 555 556
   #stage: validation_tests
   #tags: 
       #- arm-taste-debian1
   #script:
557
       #- cd $AIR/examples/private-example/private/validation/TEST-DEF-00600
558 559 560 561 562 563
       #- cp $AIR/../utils/gitlab-runner/* .
       #- ./do_zynqz1_qemu.bash
       #- ./testcheck.py
       #- cd $AIR
   #environment:
       #name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
564 565

01390_arm: 
566 567 568 569
   stage: validation_tests
   tags: 
       - arm-taste-debian1
   script:
570
       - cd $AIR/examples/private-example/private/validation/TEST-DEF-01390
571 572 573 574 575 576
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_zynqz1_qemu.bash
       - ./testcheck.py
       - cd $AIR
   environment:
       name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
577 578

#01561_arm: 
579 580 581 582
   #stage: validation_tests
   #tags: 
       #- arm-taste-debian1
   #script:
583
       #- cd $AIR/examples/private-example/private/validation/TEST-DEF-01561
584 585 586 587 588 589
       #- cp $AIR/../utils/gitlab-runner/* .
       #- ./do_zynqz1_qemu.bash
       #- ./testcheck.py
       #- cd $AIR
   #environment:
       #name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
590 591

#01570_arm: 
592 593 594 595
   #stage: validation_tests
   #tags: 
       #- arm-taste-debian1
   #script:
596
       #- cd $AIR/examples/private-example/private/validation/TEST-DEF-01570
597 598 599 600 601 602
       #- cp $AIR/../utils/gitlab-runner/* .
       #- ./do_zynqz1_qemu.bash
       #- ./testcheck.py
       #- cd $AIR
   #environment:
       #name: ARM ZYNQZ1