thirdParty/alpaka/script/install_analysis.sh
#!/bin/bash

#
# Copyright 2017-2019 Benjamin Worpitz
# SPDX-License-Identifier: MPL-2.0
#

set +xv
source ./script/setup_utilities.sh

echo_green "<SCRIPT: install_analysis>"

if [ "$ALPAKA_CI_OS_NAME" = "Linux" ]
then
    #-------------------------------------------------------------------------------
    # Install sloc
    travis_retry sudo apt-get -y --quiet --allow-unauthenticated --no-install-recommends install sloccount
    sloccount --version

    #-------------------------------------------------------------------------------
    # Install shellcheck
    travis_retry sudo apt-get -y --quiet --allow-unauthenticated --no-install-recommends install shellcheck
    shellcheck --version

elif [ "$ALPAKA_CI_OS_NAME" = "macOS" ]
then
    #-------------------------------------------------------------------------------
    # Install sloc
    brew install sloccount
    sloccount --version

    #-------------------------------------------------------------------------------
    # Install shellcheck
    brew install shellcheck
    shellcheck --version

fi
