Commit 078cb47d authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED transform backslash to slash in all scripts

parent 4ddd5655
#!/bin/bash
if [ "$OS" == "win7" ]; then
# there is no docker on windows
CONTAINER_ID=0
......@@ -63,11 +62,6 @@ else
fi
QT_VERSION=$(qmake --version | grep Qt | cut -f4 -d" " )
# Path needs to use forward slashes
# This is ok on Linux but since gitlab-runner 11.7 on windows all path variables use backward slash instead of forward slash
# → Replace all backslash to forward slash
export PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR//\\//}
# output all information to report file
echo "Docker container id....... $CONTAINER_ID" > /tmp/report.txt
echo "Job....................... $CI_JOB_NAME" >> /tmp/report.txt
......
#!/bin/bash
# Path needs to use forward slashes
# This is ok on Linux but since gitlab-runner 11.7 on windows all path variables use backward slash instead of forward slash
# → Replace all backslash to forward slash
export PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR//\\//}
echo "Job $CI_JOB_NAME"
echo "PROJECT_SOURCE_DIR=$PROJECT_SOURCE_DIR"
if [ "$TRIGGER_STAGE_CHECK" == "false" ]; then
echo "Job skipped as /check flag not in commit message and CAMITK_CI_STAGE < $STAGE_CHECK";
......
......@@ -2,9 +2,13 @@
# Uncomment next line to print each bash command before it is executed
#set -x
# Path needs to use forward slashes
# This is ok on Linux but since gitlab-runner 11.7 on windows all path variables use backward slash instead of forward slash
# → Replace all backslash to forward slash
export PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR//\\//}
echo "Job $CI_JOB_NAME"
echo "PROJECT_SOURCE_DIR=$PROJECT_SOURCE_DIR"
echo "CI_PROJECT_DIR=$CI_PROJECT_DIR"
if ! grep -q TRIGGER_STAGE_CONFIGURE "${PROJECT_LOG_DIR}/trigger-stage.txt"; then
echo "Job skipped as /configure flag not in commit message and CAMITK_CI_STAGE < $STAGE_CONFIGURE";
......
#!/bin/bash
# Path needs to use forward slashes
# This is ok on Linux but since gitlab-runner 11.7 on windows all path variables use backward slash instead of forward slash
# → Replace all backslash to forward slash
export PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR//\\//}
echo "Job $CI_JOB_NAME"
echo "PROJECT_SOURCE_DIR=$PROJECT_SOURCE_DIR"
if ! grep -q TRIGGER_STAGE_COVERAGE "${PROJECT_LOG_DIR}/trigger-stage.txt"; then
echo "Job skipped as /coverage flag not in commit message and CAMITK_CI_STAGE < $STAGE_CONFIGURE";
......
......@@ -2,7 +2,13 @@
# Uncomment next line to print each bash command before it is executed
#set -x
# Path needs to use forward slashes
# This is ok on Linux but since gitlab-runner 11.7 on windows all path variables use backward slash instead of forward slash
# → Replace all backslash to forward slash
export PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR//\\//}
echo "Job $CI_JOB_NAME"
echo "PROJECT_SOURCE_DIR=$PROJECT_SOURCE_DIR"
if ! grep -q TRIGGER_STAGE_TEST "${PROJECT_LOG_DIR}/trigger-stage.txt"; then
echo "Job skipped as /test flag not in commit message and CAMITK_CI_STAGE < $STAGE_CONFIGURE";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment