Newer
Older
################################################################################
# Build jobs
################################################################################
################################################################################
######################### GCC #########################################
################################################################################
### GCC 4.8 with libfabric1.7.1, mercury 1.0.1
image: bscstorage/norns-build-deps:gcc4.8-libfabric1.7.1-mercury1.0.1
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
only:
- tags
- triggers
- schedules
artifacts:
paths:
- build
### GCC 4.9 with libfabric1.7.1, mercury 1.0.1
build:gcc:4.9:
image: bscstorage/norns-build-deps:gcc4.9-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
only:
- tags
- triggers
- schedules
### GCC 5.4 with libfabric1.7.1, mercury 1.0.1
build:gcc_5.4:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:gcc5.4-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
only:
- tags
- triggers
- schedules
### GCC 6.5 with libfabric1.7.1, mercury 1.0.1
build:gcc_6.5:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:gcc6.5-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
only:
- tags
- triggers
- schedules
### GCC 7.4 with libfabric1.7.1, mercury 1.0.1
build:gcc_7.4:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:gcc7.4-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
only:
- tags
- triggers
- schedules
### GCC 8.1 with libfabric1.7.1, mercury 1.0.1
build:gcc_8.1:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:gcc8.1-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
only:
- tags
- triggers
- schedules
### GCC 9.1 with libfabric1.7.1, mercury 1.0.1
build:gcc_9.1:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:gcc9.1-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
- find "${CI_PROJECT_DIR}/build" \( -name "*.o" -or -name "*.lo" \) -delete
- du -h "${CI_PROJECT_DIR}/build"
expire_in: 12 hours
################################################################################
######################### LLVM/Clang #########################################
################################################################################
### Clang 3.6 with libfabric1.7.1, mercury 1.0.1
build:clang_3.6:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:clang3.6-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
# only:
# - tags
# - triggers
# - schedules
### Clang 3.8 with libfabric1.7.1, mercury 1.0.1
build:clang_3.8:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:clang3.8-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
# only:
# - tags
# - triggers
# - schedules
### Clang 3.9 with libfabric1.7.1, mercury 1.0.1
build:clang_3.9:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:clang3.9-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
# only:
# - tags
# - triggers
# - schedules
### Clang 4.0 with libfabric1.7.1, mercury 1.0.1
build:clang_4.0:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:clang4.0-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
# only:
# - tags
# - triggers
# - schedules
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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
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
### Clang 5.0 with libfabric1.7.1, mercury 1.0.1
build:clang_5.0:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:clang5.0-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
# only:
# - tags
# - triggers
# - schedules
### Clang 6.0 with libfabric1.7.1, mercury 1.0.1
build:clang_6.0:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:clang6.0-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
# only:
# - tags
# - triggers
# - schedules
### Clang 7.1 with libfabric1.7.1, mercury 1.0.1
build:clang_7.1:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:clang7.1-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
# only:
# - tags
# - triggers
# - schedules
### Clang 8.0 with libfabric1.7.1, mercury 1.0.1
build:clang_8.0:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:clang8.0-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
# only:
# - tags
# - triggers
# - schedules
### Clang 9.0 with libfabric1.7.1, mercury 1.0.1
build:clang_9.0:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:clang9.0-libfabric1.7.1-mercury1.0.1
stage: build
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
make -j$(nproc) api_interactive
)
# only:
# - tags
# - triggers
# - schedules
################################################################################
# Test jobs
################################################################################
### GCC 9.1 with libfabric1.7.1, mercury 1.0.1
test:gcc_9.1:libfabric_1.7.1:mercury_1.0.1:
image: bscstorage/norns-build-deps:gcc9.1-libfabric1.7.1-mercury1.0.1
stage: test
dependencies:
- build:gcc_9.1:libfabric_1.7.1:mercury_1.0.1
NORNS_DEBUG_CONFIG_FILE_OVERRIDE: 1
script:
- |
(
set -Eeuo pipefail
set -x
cd build/tests
./core -as
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
./api -as "[api::NORNS_TASK]"
./api -as "[api::norns_error]"
./api -as "[api::norns_iotask_init]"
./api -as "[api::norns_resource_init]"
./api -as "[api::norns_submit]"
./api -as "[api::norns_submit_copy_buffer_to_file]"
./api -as "[api::norns_submit_copy_local_posix_files]"
./api -as "[api::norns_submit_pull_errors]"
./api -as "[api::norns_submit_pull_links]"
./api -as "[api::norns_submit_pull_to_posix_file]"
./api -as "[api::norns_submit_pull_to_posix_subdir]"
./api -as "[api::norns_submit_push_errors]"
./api -as "[api::norns_submit_push_links]"
./api -as "[api::norns_submit_push_memory_to_posix_file]"
./api -as "[api::norns_submit_push_memory_to_posix_file_errors]"
./api -as "[api::norns_submit_push_to_posix_file]"
./api -as "[api::norns_submit_push_to_posix_subdir]"
./api -as "[api::norns_submit_remove_local_posix_files]"
./api -as "[api::nornsctl_add_process]"
./api -as "[api::nornsctl_register_job]"
./api -as "[api::nornsctl_register_namespace]"
./api -as "[api::nornsctl_remove_process]"
./api -as "[api::nornsctl_send_command]"
./api -as "[api::nornsctl_status]"
./api -as "[api::nornsctl_unregister_job]"
./api -as "[api::nornsctl_unregister_namespace]"
./api -as "[api::nornsctl_update_job]"
artifacts:
paths:
- "${CI_PROJECT_DIR}/build/tests"
when: on_failure
expire_in: 1 week
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
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
################################################################################
# Coverage jobs
################################################################################
###
build:coverage:
image: bscstorage/norns-build-deps:gcc9.1-libfabric1.7.1-mercury1.0.1
stage: build
variables:
CFLAGS: "-O0 --coverage"
CXXFLAGS: "-O0 --coverage"
LDFLAGS: "--coverage"
script:
- |
(
set -Eeuo pipefail
set -x
./bootstrap.sh
mkdir build && cd build
../configure --enable-tests
make -j$(nproc)
cd tests
make -j$(nproc) core
make -j$(nproc) api
)
- find "${CI_PROJECT_DIR}/build" \( -name "*.o" -or -name "*.lo" \) -delete
- du -h "${CI_PROJECT_DIR}/build"
artifacts:
paths:
- "${CI_PROJECT_DIR}/build"
expire_in: 1 day
###
test:coverage:
image: bscstorage/norns-build-deps:gcc9.1-libfabric1.7.1-mercury1.0.1
stage: test
dependencies:
- build:coverage
variables:
NORNS_DEBUG_CONFIG_FILE_OVERRIDE: 1
script:
- |
(
set -Eeuo pipefail
set -x
cd build/tests
./core -as
./api -as "[api::NORNS_TASK]"
./api -as "[api::norns_error]"
./api -as "[api::norns_iotask_init]"
./api -as "[api::norns_resource_init]"
./api -as "[api::norns_submit]"
./api -as "[api::norns_submit_copy_buffer_to_file]"
./api -as "[api::norns_submit_copy_local_posix_files]"
./api -as "[api::norns_submit_pull_errors]"
./api -as "[api::norns_submit_pull_links]"
./api -as "[api::norns_submit_pull_to_posix_file]"
./api -as "[api::norns_submit_pull_to_posix_subdir]"
./api -as "[api::norns_submit_push_errors]"
./api -as "[api::norns_submit_push_links]"
./api -as "[api::norns_submit_push_memory_to_posix_file]"
./api -as "[api::norns_submit_push_memory_to_posix_file_errors]"
./api -as "[api::norns_submit_push_to_posix_file]"
./api -as "[api::norns_submit_push_to_posix_subdir]"
./api -as "[api::norns_submit_remove_local_posix_files]"
./api -as "[api::nornsctl_add_process]"
./api -as "[api::nornsctl_register_job]"
./api -as "[api::nornsctl_register_namespace]"
./api -as "[api::nornsctl_remove_process]"
./api -as "[api::nornsctl_send_command]"
./api -as "[api::nornsctl_status]"
./api -as "[api::nornsctl_unregister_job]"
./api -as "[api::nornsctl_unregister_namespace]"
./api -as "[api::nornsctl_update_job]"
)
- |
(
set -Eeuo pipefail
set -x
cd build
${CI_PROJECT_DIR}/gencov.sh
[[ -e norns.info ]] || false
genhtml -o html/coverage norns.info
expire_in: 1 week
pages:
image: alpine:latest
stage: deploy
before_script:
- ''
dependencies:
- test:coverage
script: