Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab_shared_files
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
gitlab_shared_files
Commits
38d60b74
Commit
38d60b74
authored
5 months ago
by
Grégoire Kubler
Browse files
Options
Downloads
Patches
Plain Diff
feat: added test_ci_local.sh to test ci locally
parent
8a648446
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test_ci_local.sh
+31
-0
31 additions, 0 deletions
test_ci_local.sh
with
31 additions
and
0 deletions
test_ci_local.sh
0 → 100755
+
31
−
0
View file @
38d60b74
#!/bin/bash
set
-e
set
-x
#################
# THIS SMALL CODE IS MEANT TO HELP DEBUG CI BASH SCRIPT LOCALLY
#################
## DO NOT MODIFY
GITLAB_ECLIPSE_URL
=
"https://gitlab.eclipse.org/"
API_URL
=
"https://gitlab.eclipse.org/api/v4"
## SETUP CI VARIABLES
CI_PROJECT_ROOT_NAMESPACE
=
'eclipse/aidge'
CI_PROJECT_NAMESPACE
=
"eclipse/aidge"
CI_PROJECT_NAMESPACE_ID
=
"6437"
CI_PROJECT_NAME
=
"aidge_backend_cuda"
CI_COMMIT_BRANCH
=
"fix"
USER
=
$(
curl
-s
"
${
API_URL
}
/users?username=
${
CI_PROJECT_ROOT_NAMESPACE
}
"
)
## CREATE YOUR ENV HERE
PROJECT
=
$(
curl
-s
"
${
API_URL
}
/users/
${
USER_ID
}
/projects?search=
${
DEP_NAME
}
"
)
DEPS_SELECTED_JOBS
=
'[]'
DEP_NAME
=
"aidge_core"
DEP_ID
=
5140
# PIPELINE_ID=51499
# BRANCH_TO_PULL="dev"
# DEPENDENCY_JOB="job name here"
# CI_PROJECT_ID=5190
DEP_API_URL
=
"
$API_URL
/projects/
$DEP_ID
"
#### COPY PASTE CODE FROM CI SCRIPTS HERE TO RUN THEM LOCALLY
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