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
################################################################################
# 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
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
./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
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
################################################################################
# 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: