+++ /dev/null
-#!/bin/bash
-
-# Background for this hack
-#
-# To fetch submodule repositories from github.sec.samsung.net, we must
-# authenticate the user, who is fetching the source tree, regardless of
-# communication protocol (e.g., ssh, https). Note that the policy of Samsung's
-# internal github does not allow to access the repository without
-# authentication. Because of this, the replacement below is a workaround to
-# pass the login information of our CI account, git-bot-sec, using an API token.
-# Since the URL in .gitmodules is written with `git@` that requires ssh key
-# authentication and we don't really want to put git-bot-sec's ssh private key
-# somewhere, we decided to use a token-based authentication method.
-
-SCRIPT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-HOST_HOME=$SCRIPT_ROOT/../..
-
-USERNAME=git-bot-sec
-TOKEN=acb137d756874f7c7746a95e31ebb3994f1c4505
-
-sed -i "s/git@github.sec.samsung.net:/https:\/\/$USERNAME:$TOKEN@github.sec.samsung.net\//" $HOST_HOME/.gitmodules
CMD="export OPTIONS=\" -DBUILD_NEURUN=ON -DBUILD_NN_RUNTIME=OFF \" && make acl && make && make install && make build_test_suite"
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD"
BUILD_RESULT=$?
DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
if [ -n "$DOCKER_INTERACTIVE" ]; then
DOCKER_RUN_OPTS+=" -it"
CMD="/bin/bash"
DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
DOCKER_VOLUMES+=" -v $ARMCL_DIR:/opt/libarmcl"
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
if [ -n "$DOCKER_INTERACTIVE" ]; then
DOCKER_RUN_OPTS+=" -it"
CMD="/bin/bash"
CMD="make && make install && make build_test_suite"
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD"
BUILD_RESULT=$?
DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
DOCKER_VOLUMES+=" -v $COVERITY_OUT:/opt/cov-out"
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
if [ -n "$DOCKER_INTERACTIVE" ]; then
DOCKER_RUN_OPTS+=" -it"
CMD="/bin/bash"
DOCKER_VOLUMES+=" -v $SVACE_ANALYZER_DIR:/opt/svace-analyzer"
DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
if [ -n "$DOCKER_INTERACTIVE" ]; then
DOCKER_RUN_OPTS+=" -it"
CMD="/bin/bash"
DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
if [ -n "$DOCKER_INTERACTIVE" ]; then
DOCKER_RUN_OPTS+=" -it"
CMD="/bin/bash"
CMD="/bin/bash"
fi
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME $CMD_SUBMODULE
-
docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME $CMD
BUILD_RESULT=$?