Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Accelerator Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SoCLabs
Accelerator Project
Commits
41acc54f
Commit
41acc54f
authored
2 years ago
by
dam1n19
Browse files
Options
Downloads
Patches
Plain Diff
Added debug statements to fnd where set_env is falling over in ci
parent
03f85d5c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Changed set_env flow to source script in soctools and breadcrumb left in...
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-1
0 additions, 1 deletion
.gitlab-ci.yml
set_env.sh
+6
-0
6 additions, 0 deletions
set_env.sh
with
6 additions
and
1 deletion
.gitlab-ci.yml
+
0
−
1
View file @
41acc54f
...
@@ -32,7 +32,6 @@ simulate-nanosoc:
...
@@ -32,7 +32,6 @@ simulate-nanosoc:
-
echo "Simulation phase started"
-
echo "Simulation phase started"
-
git submodule foreach --recursive git submodule init
-
git submodule foreach --recursive git submodule init
-
git fetch --recurse-submodules
-
git fetch --recurse-submodules
-
git submodule foreach --recursive git submodule init
-
source set_env.sh
-
source set_env.sh
-
sleep
5
-
sleep
5
tags
:
tags
:
...
...
This diff is collapsed.
Click to expand it.
set_env.sh
+
6
−
0
View file @
41acc54f
...
@@ -63,11 +63,17 @@ if [ ! -f $SOCLABS_PROJECT_DIR/.socinit ]; then
...
@@ -63,11 +63,17 @@ if [ ! -f $SOCLABS_PROJECT_DIR/.socinit ]; then
echo
"Running First Time Repository Initialisation"
echo
"Running First Time Repository Initialisation"
# Source environment variables for all submodules
# Source environment variables for all submodules
cd
$SOCLABS_DESIGN_ROOT
cd
$SOCLABS_DESIGN_ROOT
echo
"1"
git submodule update
--remote
--recursive
git submodule update
--remote
--recursive
echo
"2"
python3
$SOCLABS_SOCTOOLS_FLOW_DIR
/bin/subrepo_checkout.py
-b
proj-branch
-t
$SOCLABS_DESIGN_ROOT
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
#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
# 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
# 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
git restore
$SOCLABS_DESIGN_ROOT
/.gitmodules
echo
"5"
touch
$SOCLABS_PROJECT_DIR
/.socinit
touch
$SOCLABS_PROJECT_DIR
/.socinit
echo
"6"
fi
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment