function generate() {
    OPTIONS=""

    if [ "$ASAN" = "ON" ] ; then
        OPTIONS="$OPTIONS -DCPPCORE_ASAN=ON"
    else
        OPTIONS="$OPTIONS -DCPPCORE_ASAN=OFF"
    fi

    if [ "$UBSAN" = "ON" ] ; then
        OPTIONS="$OPTIONS -DCPPCORE_UBSAN=ON"
    else
        OPTIONS="$OPTIONS -DCPPCORE_UBSAN=OFF"
    fi

    cd build
    cmake -G "Unix Makefiles" $OPTIONS
}

if [ "$TRAVIS_OS_NAME" = "linux" ]; then
  if [ "$ANALYZE" = "ON" ] ; then
    if [ "$CC" = "clang" ]; then
        cd build
        scan-build cmake -G "Unix Makefiles"
        scan-build --status-bugs make -j4
    fi
  else
    generate \
    && make -j4 && cd bin && ./cppcore_unittest
  fi
fi

#!/bin/bash
function generate() {
    OPTIONS=""

    if [ "$ASAN" = "ON" ] ; then
        OPTIONS="$OPTIONS -DCPPCORE_ASAN=ON"
    else
        OPTIONS="$OPTIONS -DCPPCORE_ASAN=OFF"
    fi

    if [ "$UBSAN" = "ON" ] ; then
        OPTIONS="$OPTIONS -DCPPCORE_UBSAN=ON"
    else
        OPTIONS="$OPTIONS -DCPPCORE_UBSAN=OFF"
    fi

    cd build
    cmake -G "Unix Makefiles" $OPTIONS
}

if [ "$TRAVIS_OS_NAME" = "linux" ]; then
  if [ "$ANALYZE" = "ON" ] ; then
    if [ "$CC" = "clang" ]; then
        cd build
        scan-build cmake -G "Unix Makefiles"
        scan-build --status-bugs make -j4
    fi
  else
    generate \
    && make -j4 && cd bin && ./cppcore_unittest
  fi
fi

Add missing shebang to descripe which shell shall be used.
Add missing shebang to descripe which shell shall be used.
