Skip to content
Snippets Groups Projects
Commit 41acc54f authored by dam1n19's avatar dam1n19
Browse files

Added debug statements to fnd where set_env is falling over in ci

parent 03f85d5c
No related branches found
No related tags found
1 merge request!1Changed set_env flow to source script in soctools and breadcrumb left in...
......@@ -32,7 +32,6 @@ simulate-nanosoc:
- echo "Simulation phase started"
- git submodule foreach --recursive git submodule init
- git fetch --recurse-submodules
- git submodule foreach --recursive git submodule init
- source set_env.sh
- sleep 5
tags:
......
......@@ -63,11 +63,17 @@ if [ ! -f $SOCLABS_PROJECT_DIR/.socinit ]; then
echo "Running First Time Repository Initialisation"
# Source environment variables for all submodules
cd $SOCLABS_DESIGN_ROOT
echo "1"
git submodule update --remote --recursive
echo "2"
python3 $SOCLABS_SOCTOOLS_FLOW_DIR/bin/subrepo_checkout.py -b proj-branch -t $SOCLABS_DESIGN_ROOT
echo "3"
#git submodule foreach --recursive git checkout main # TODO: Bug on this line - need to checkout to correct branch
# Read proj-branch file to find out which branch each subrepo needs to be on
# git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | while read line; do cd $SOCLABS_PROJECT_DIR/$line && git checkout `grep $line $SOCLABS_PROJECT_DIR/proj-branch | awk '{ print $2 }'` && git pull; done
echo "4"
git restore $SOCLABS_DESIGN_ROOT/.gitmodules
echo "5"
touch $SOCLABS_PROJECT_DIR/.socinit
echo "6"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment