<commit_before>#!/bin/bash
rm -rf "$GiftGrab_BUILD_DIR"
mkdir -p "$GiftGrab_BUILD_DIR"
cd "$GiftGrab_BUILD_DIR"

# so that CI script will fail when e.g. make -j fails:
function exit_on_fail {
    exit_status=$?
    if [[ "$exit_status" -ne "0" ]]; then
        echo "Build failed due to last exit status being $exit_status"
        exit $exit_status
    fi
}

# bare-bones build
cmake -D CMAKE_INSTALL_PREFIX="$INSTALL_DIR" "$GiftGrab_SOURCE_DIR"
make -j; exit_on_fail
# no ctest: no features activated to be tested yet
make install

# build docs
cmake -D BUILD_DOC=ON .
make -j; exit_on_fail
# no ctest: no features activated to be tested yet
make install

# Python and tests (currently all python)
cmake -D BUILD_PYTHON=ON -D BUILD_TESTS=ON .
make -j; exit_on_fail
# no ctest: no features activated to be tested yet
make install

# H265 support
cmake -D USE_H265=ON .
make -j; exit_on_fail
ctest
make install

# hardware-accelerated H265
cmake -D USE_NVENC=ON .
make -j; exit_on_fail
ctest
make install

# Xvid support (OpenCV should get switched here)
cmake -D USE_XVID=ON .
make -j; exit_on_fail
ctest
make install

# Epiphan DVI2PCIe Duo support (OpenCV)
cmake -D USE_EPIPHAN_DVI2PCIE_DUO=ON .
make -j; exit_on_fail
# no ctest for Epiphan DVI2PCIe Duo on
# general-purpose Linux test server
make install

# Epiphan DVI2PCIe Duo support (EpiphanSDK)
cmake -D USE_I420=ON .
make -j; exit_on_fail
# no ctest for Epiphan DVI2PCIe Duo on
# general-purpose Linux test server
make install<commit_msg>Issue #78: appended exit_on_fail to ctest's as failing tests do not stop CI builds<commit_after>#!/bin/bash
rm -rf "$GiftGrab_BUILD_DIR"
mkdir -p "$GiftGrab_BUILD_DIR"
cd "$GiftGrab_BUILD_DIR"

# so that CI script will fail when e.g. make -j fails:
function exit_on_fail {
    exit_status=$?
    if [[ "$exit_status" -ne "0" ]]; then
        echo "Build failed due to last exit status being $exit_status"
        exit $exit_status
    fi
}

# bare-bones build
cmake -D CMAKE_INSTALL_PREFIX="$INSTALL_DIR" "$GiftGrab_SOURCE_DIR"
make -j; exit_on_fail
# no ctest: no features activated to be tested yet
make install

# build docs
cmake -D BUILD_DOC=ON .
make -j; exit_on_fail
# no ctest: no features activated to be tested yet
make install

# Python and tests (currently all python)
cmake -D BUILD_PYTHON=ON -D BUILD_TESTS=ON .
make -j; exit_on_fail
# no ctest: no features activated to be tested yet
make install

# H265 support
cmake -D USE_H265=ON .
make -j; exit_on_fail
ctest; exit_on_fail
make install

# hardware-accelerated H265
cmake -D USE_NVENC=ON .
make -j; exit_on_fail
ctest; exit_on_fail
make install

# Xvid support (OpenCV should get switched here)
cmake -D USE_XVID=ON .
make -j; exit_on_fail
ctest; exit_on_fail
make install

# Epiphan DVI2PCIe Duo support (OpenCV)
cmake -D USE_EPIPHAN_DVI2PCIE_DUO=ON .
make -j; exit_on_fail
# no ctest for Epiphan DVI2PCIe Duo on
# general-purpose Linux test server
make install

# Epiphan DVI2PCIe Duo support (EpiphanSDK)
cmake -D USE_I420=ON .
make -j; exit_on_fail
# no ctest for Epiphan DVI2PCIe Duo on
# general-purpose Linux test server
make install
{'fraction_non_alphanumeric': 0.07917605407145156, 'fraction_numerical': 0.012230447376890892, 'mean_word_length': 4.206030150753769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3050940', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1155, 'n_words': 397}