Commit 745e576a authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Update .gitlab-ci.yml

parent 72766a0b
Loading
Loading
Loading
Loading
Loading
+112 −2
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ build:gcc:8:
################################################################################
# test scripts
################################################################################
test:ubuntu:latest:
test:coverage:
    image: ubuntu:latest
    stage: test

@@ -248,10 +248,120 @@ test:ubuntu:latest:
      paths:
        - build/html/coverage/

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
            libtar-dev
            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_iotask_init]"
        - NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_resource_init]"
        - NORNS_DEBUG_CONFIG_FILE_OVERRIDE=1 ./api -as "[api::norns_status]"
        - 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

pages:
  stage: deploy
  dependencies: 
    - test:ubuntu:latest
    - test:coverage
  script:
    - mv coverage/ public/
  artifacts: