Newer
Older
# This file is a template, and might need editing before it works on your project.
# use the official gcc image, based on debian
# can use verions as well, like gcc:5.2
# see https://hub.docker.com/_/gcc/
# Install dependencies for GCC builds
before_script:
- apt-get update &&
apt-get install -y
libboost-system-dev
libboost-filesystem-dev
libboost-program-options-dev
libboost-thread-dev
libboost-regex-dev
libprotobuf-dev
protobuf-compiler
libprotobuf-c0-dev
protobuf-c-compiler
libyaml-cpp-dev
libyaml-dev
cmake
- pushd . &&
git clone https://github.com/ofiwg/libfabric.git &&
cd libfabric &&
./autogen.sh &&
mkdir build &&
cd build &&
../configure &&
make -j $(nproc) &&
make install &&
popd
- pushd . &&
git clone https://github.com/mercury-hpc/mercury.git &&
cd mercury &&
mkdir build &&
cd build &&
cmake
-DCMAKE_BUILD_TYPE:STRING=Debug
-DBUILD_TESTING:BOOL=OFF
-DMERCURY_USE_SM_ROUTING:BOOL=OFF
-DMERCURY_USE_SELF_FORWARD:BOOL=OFF
-DMERCURY_USE_BOOST_PP:BOOL=ON
-DMERCURY_USE_EAGER_BULK:BOOL=ON
-DBUILD_SHARED_LIBS:BOOL=ON
-DNA_USE_OFI:BOOL=ON
.. &&
### GCC 5
build:gcc:5:
image: gcc:5
stage: build
script:
- ./bootstrap.sh
- mkdir build && cd build
- ../configure
--enable-tests
- make -j$(nproc) CPPFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"
- make -j$(nproc) CPPFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" core
- make -j$(nproc) CPPFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" api
### GCC 6
build:gcc:6:
image: gcc:6
stage: build
script:
- ./bootstrap.sh
- mkdir build && cd build
- ../configure
--enable-tests
- make -j$(nproc) CPPFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"
- make -j$(nproc) CPPFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" core
- make -j$(nproc) CPPFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" api
### GCC 7
build:gcc:7:
image: gcc:7
stage: build
script:
- ./bootstrap.sh
- mkdir build && cd build
- ../configure
--enable-tests
### GCC 8
build:gcc:8:
image: gcc:8
stage: build
script:
- ./bootstrap.sh
- mkdir build && cd build
- ../configure
--enable-tests
################################################################################
# test scripts
################################################################################
build-essential
autotools-dev
automake
autoconf
libtool
libboost-system-dev
libboost-filesystem-dev
libboost-program-options-dev
libboost-thread-dev
- pushd . &&
git clone https://github.com/ofiwg/libfabric.git &&
cd libfabric &&
./autogen.sh &&
mkdir build &&
cd build &&
../configure &&
make -j $(nproc) &&
make install &&
- pushd . &&
git clone https://github.com/mercury-hpc/mercury.git &&
cd mercury &&
mkdir build &&
cd build &&
cmake
-DCMAKE_BUILD_TYPE:STRING=Debug
-DBUILD_TESTING:BOOL=OFF
-DMERCURY_USE_SM_ROUTING:BOOL=OFF
-DMERCURY_USE_SELF_FORWARD:BOOL=OFF
-DMERCURY_USE_CHECKSUMS:BOOL=OFF
-DMERCURY_USE_BOOST_PP:BOOL=ON
-DMERCURY_USE_EAGER_BULK:BOOL=ON
-DBUILD_SHARED_LIBS:BOOL=ON
-DNA_USE_OFI:BOOL=ON
.. &&
make -j $(nproc) &&
make install &&
CFLAGS="-O0 --coverage"
CXXFLAGS="-O0 --coverage"
LDFLAGS="--coverage"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::NORNS_TASK]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_error]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_iotask_init]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_resource_init]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_copy_buffer_to_file]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_copy_local_posix_files]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_pull_errors]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_pull_links]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_pull_to_posix_file]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_pull_to_posix_subdir]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_errors]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_links]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_memory_to_posix_file]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_memory_to_posix_file_errors]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_to_posix_file]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_to_posix_subdir]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_remove_local_posix_files]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_add_process]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_register_job]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_register_namespace]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_remove_process]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_send_command]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_status]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_unregister_job]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_unregister_namespace]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_update_job]"
- genhtml -o build/html/coverage build/norns.info
artifacts:
paths:
- build/html/coverage/
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
test:optimized:
image: ubuntu:latest
stage: test
# Install dependencies
before_script:
- apt-get update &&
apt-get upgrade -y &&
apt-get install -y
git
build-essential
autotools-dev
automake
autoconf
libtool
pkg-config
libboost-system-dev
libboost-filesystem-dev
libboost-program-options-dev
libboost-thread-dev
libboost-regex-dev
libprotobuf-dev
protobuf-compiler
libprotobuf-c-dev
protobuf-c-compiler
libyaml-cpp-dev
libyaml-dev
279
280
281
282
283
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
320
321
322
323
324
325
326
327
libcap2-bin
valgrind
cmake
- pushd . &&
git clone https://github.com/ofiwg/libfabric.git &&
cd libfabric &&
./autogen.sh &&
mkdir build &&
cd build &&
../configure &&
make -j $(nproc) &&
make install &&
popd &&
ldconfig
- pushd . &&
git clone https://github.com/mercury-hpc/mercury.git &&
cd mercury &&
mkdir build &&
cd build &&
cmake
-DCMAKE_BUILD_TYPE:STRING=Debug
-DBUILD_TESTING:BOOL=OFF
-DMERCURY_USE_SM_ROUTING:BOOL=OFF
-DMERCURY_USE_SELF_FORWARD:BOOL=OFF
-DMERCURY_USE_CHECKSUMS:BOOL=OFF
-DMERCURY_USE_BOOST_PP:BOOL=ON
-DMERCURY_USE_EAGER_BULK:BOOL=ON
-DBUILD_SHARED_LIBS:BOOL=ON
-DNA_USE_OFI:BOOL=ON
.. &&
make -j $(nproc) &&
make install &&
popd &&
ldconfig
# Build and test
script:
- ./bootstrap.sh
- mkdir build && cd build
- ../configure
--enable-tests
- make -j$(nproc)
- cd tests
- make -j$(nproc) core
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./core -as
- make -j$(nproc) api
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::NORNS_TASK]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_error]"
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
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_iotask_init]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_resource_init]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_copy_buffer_to_file]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_copy_local_posix_files]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_pull_errors]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_pull_links]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_pull_to_posix_file]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_pull_to_posix_subdir]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_errors]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_links]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_memory_to_posix_file]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_memory_to_posix_file_errors]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_to_posix_file]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_push_to_posix_subdir]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_submit_remove_local_posix_files]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_add_process]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_register_job]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_register_namespace]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_remove_process]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_send_command]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_status]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_unregister_job]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_unregister_namespace]"
- NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::nornsctl_update_job]"
after_script:
- if [[ -e build/tests.log ]];
then
cat $(tail -1 build/tests.log)/config/urd.log;
fi
artifacts:
paths:
- public
expire_in: 30 days
only:
- master