.gitlab-ci.yml 13.4 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:
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 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
        
########################
#Unit Tests for SPARC       #
########################


00009_sparc:
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
       - cd $AIR/examples/private/validation/TEST-DEF-00009
       - 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:
       - cd $AIR/examples/private/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
235
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
236 237
    tags: 
        - sparc-taste-debian1
238
    script:
239
        - cd $AIR/examples/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 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272


00021_sparc: 
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
       - cd $AIR/examples/private/validation/TEST-DEF-00021
       - 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:
       - cd $AIR/examples/private/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
273
    stage: validation_tests
Daniel Silveira's avatar
Daniel Silveira committed
274 275
    tags: 
        - sparc-taste-debian1
276
    script:
277
        - cd $AIR/examples/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 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
00500_sparc: 
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
       - cd $AIR/examples/private/validation/TEST-DEF-00500
       - 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:
       - cd $AIR/examples/private/validation/TEST-DEF-00510
       - 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:
       - cd $AIR/examples/private/validation/TEST-DEF-00540
       - 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/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/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 349 350 351 352 353 354
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
       - cd $AIR/examples/private/validation/TEST-DEF-01390
       - 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 361 362 363 364 365 366
   stage: validation_tests
   tags: 
       - sparc-taste-debian1
   script:
       - cd $AIR/examples/private/validation/TEST-DEF-01561
       - 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/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
#    tags: 
#        - arm_qemu
385

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

hello_world_arm:
Daniel Silveira's avatar
Daniel Silveira committed
401
    stage: examples
Daniel Silveira's avatar
Daniel Silveira committed
402 403 404 405 406 407 408 409 410 411 412
    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
413

414
00009_arm:
Daniel Silveira's avatar
Daniel Silveira committed
415 416 417 418
    stage: validation_tests
    tags: 
        - arm-taste-debian1
    script:
419
        - cd $AIR/examples/private/validation/TEST-DEF-00009
Daniel Silveira's avatar
Daniel Silveira committed
420 421 422 423 424 425 426
        - cp $AIR/../utils/gitlab-runner/* .
        - ./do_zynqz1_qemu.bash
        - ./testcheck.py
        - cd $AIR
    environment:
        name: ARM ZYNQZ1

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 518 519
00010_arm:
   stage: validation_tests
   tags: 
       - arm-taste-debian1
   script:
       - cd $AIR/examples/private/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/private/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/private/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/private/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/private/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/private/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/private/validation/TEST-DEF-00510
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_zynqz1_qemu.bash
       - ./testcheck.py
       - cd $AIR
   environment:
       name: ARM ZYNQZ1

Daniel Silveira's avatar
Daniel Silveira committed
520
00540_arm: 
521 522 523 524 525 526 527 528 529 530 531
   stage: validation_tests
   tags: 
       - arm-taste-debian1
   script:
       - cd $AIR/examples/private/validation/TEST-DEF-00540
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_zynqz1_qemu.bash
       - ./testcheck.py
       - cd $AIR
   environment:
       name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
532 533

00560_arm: 
534 535 536 537 538 539 540 541 542 543 544
   stage: validation_tests
   tags: 
       - arm-taste-debian1
   script:
       - cd $AIR/examples/private/validation/TEST-DEF-00560
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_zynqz1_qemu.bash
       - ./testcheck.py
       - cd $AIR
   environment:
       name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
545 546

#00600_arm: 
547 548 549 550 551 552 553 554 555 556 557
   #stage: validation_tests
   #tags: 
       #- arm-taste-debian1
   #script:
       #- cd $AIR/examples/private/validation/TEST-DEF-00600
       #- cp $AIR/../utils/gitlab-runner/* .
       #- ./do_zynqz1_qemu.bash
       #- ./testcheck.py
       #- cd $AIR
   #environment:
       #name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
558 559

01390_arm: 
560 561 562 563 564 565 566 567 568 569 570
   stage: validation_tests
   tags: 
       - arm-taste-debian1
   script:
       - cd $AIR/examples/private/validation/TEST-DEF-01390
       - cp $AIR/../utils/gitlab-runner/* .
       - ./do_zynqz1_qemu.bash
       - ./testcheck.py
       - cd $AIR
   environment:
       name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
571 572

#01561_arm: 
573 574 575 576 577 578 579 580 581 582 583
   #stage: validation_tests
   #tags: 
       #- arm-taste-debian1
   #script:
       #- cd $AIR/examples/private/validation/TEST-DEF-01561
       #- cp $AIR/../utils/gitlab-runner/* .
       #- ./do_zynqz1_qemu.bash
       #- ./testcheck.py
       #- cd $AIR
   #environment:
       #name: ARM ZYNQZ1
Daniel Silveira's avatar
Daniel Silveira committed
584 585

#01570_arm: 
586 587 588 589 590 591 592 593 594 595 596
   #stage: validation_tests
   #tags: 
       #- arm-taste-debian1
   #script:
       #- cd $AIR/examples/private/validation/TEST-DEF-01570
       #- cp $AIR/../utils/gitlab-runner/* .
       #- ./do_zynqz1_qemu.bash
       #- ./testcheck.py
       #- cd $AIR
   #environment:
       #name: ARM ZYNQZ1