<commit_before>variables:
    GIT_SUBMODULE_STRATEGY: "recursive"
    DEVEL_HPP_DIR: "/workspace"
    BUILD_TYPE: "Release"

.build_template: &build_definition
    stage: build
    script:
      - mkdir -p $DEVEL_HPP_DIR/src
      - export INSTALL_DOCUMENTATION=OFF
      - $CI_PROJECT_DIR/scripts/auto-install-hpp.sh --branch ${CI_COMMIT_REF_NAME} --gitrepo ${CI_PROJECT_URL}/raw --target test-ci
    after_script:
      - mv $DEVEL_HPP_DIR $CI_PROJECT_DIR
    artifacts:
      expire_in: 1 day
      when: always
      paths:
        - workspace

.test_template: &test_definition
    stage: test
    script:
      - rm -rf /workspace
      - mv workspace /
      - status=0
      - echo -e "#!/bin/bash\nsource $DEVEL_HPP_DIR/config.sh\ncd $DEVEL_HPP_DIR/src/\$1/build-rel && make CTEST_OUTPUT_ON_FAILURE=1 test" > $DEVEL_HPP_DIR/test.sh || status=1
      - cat $DEVEL_HPP_DIR/test.sh
      - set +e
      - chmod u+x $DEVEL_HPP_DIR/test.sh
      - $DEVEL_HPP_DIR/test.sh hpp-util                    || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-fcl                     || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-pinocchio               || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-statistics              || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-constraints             || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-core                    || status=1
        #- $DEVEL_HPP_DIR/test.sh hpp-corbaserver          || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-manipulation            || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-manipulation-urdf       || status=1
        #- $DEVEL_HPP_DIR/test.sh hpp-manipulation-corba   || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-walkgen                 || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-wholebody-step          || status=1
        #- $DEVEL_HPP_DIR/test.sh hpp-wholebody-step-corba || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-rbprm                   || status=1
      - set -e
      - exit $status
    allow_failure: true
    after_script:
      - mv $DEVEL_HPP_DIR $CI_PROJECT_DIR
    artifacts:<commit_msg>CI: add more unit tests<commit_after>variables:
    GIT_SUBMODULE_STRATEGY: "recursive"
    DEVEL_HPP_DIR: "/workspace"
    BUILD_TYPE: "Release"

.build_template: &build_definition
    stage: build
    script:
      - mkdir -p $DEVEL_HPP_DIR/src
      - export INSTALL_DOCUMENTATION=OFF
      - $CI_PROJECT_DIR/scripts/auto-install-hpp.sh --branch ${CI_COMMIT_REF_NAME} --gitrepo ${CI_PROJECT_URL}/raw --target test-ci
    after_script:
      - mv $DEVEL_HPP_DIR $CI_PROJECT_DIR
    artifacts:
      expire_in: 1 day
      when: always
      paths:
        - workspace

.test_template: &test_definition
    stage: test
    script:
      - rm -rf /workspace
      - mv workspace /
      - status=0
      - echo -e "#!/bin/bash\nsource $DEVEL_HPP_DIR/config.sh\ncd $DEVEL_HPP_DIR/src/\$1/build-rel && make CTEST_OUTPUT_ON_FAILURE=1 test" > $DEVEL_HPP_DIR/test.sh || status=1
      - cat $DEVEL_HPP_DIR/test.sh
      - set +e
      - chmod u+x $DEVEL_HPP_DIR/test.sh
      - $DEVEL_HPP_DIR/test.sh hpp-util                    || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-fcl                     || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-pinocchio               || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-statistics              || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-constraints             || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-core                    || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-corbaserver             || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-manipulation            || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-manipulation-urdf       || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-manipulation-corba      || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-walkgen                 || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-wholebody-step          || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-rbprm                   || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-rbprm-corba             || status=1
      - set -e
      - exit $status
    allow_failure: true
    after_script:
      - mv $DEVEL_HPP_DIR $CI_PROJECT_DIR
    artifacts:
{'fraction_non_alphanumeric': 0.11326628352490421, 'fraction_numerical': 0.009099616858237548, 'mean_word_length': 1.9624113475177305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6222170', 'n_tokens_mistral': 1592, 'n_tokens_neox': 1522, 'n_words': 237}