Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poulpe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
octobus
Poulpe
Commits
0c73d5ff
Commit
0c73d5ff
authored
2 years ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
data-setup: move the existing data-deletion in `setup-full.sh`
Let's make the basic building brick more reusable.
parent
16556cfc
No related branches found
No related tags found
1 merge request
!15
basic data-setup
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
suites/hg/setup-data/setup-00-minimal.sh
+0
-2
0 additions, 2 deletions
suites/hg/setup-data/setup-00-minimal.sh
suites/hg/setup-data/setup-full.sh
+8
-0
8 additions, 0 deletions
suites/hg/setup-data/setup-full.sh
with
8 additions
and
2 deletions
suites/hg/setup-data/setup-00-minimal.sh
+
0
−
2
View file @
0c73d5ff
...
...
@@ -20,8 +20,6 @@
desc
=
"
${
data_env_directory
}
/data-env.poulpe"
rm
-f
"
$desc
"
env-desc
set
"
$desc
"
poulpe-environment.environment-type data
env-desc
set
"
$desc
"
poulpe-environment.format-version 0
env-desc
set
"
$desc
"
poulpe-environment.setup-method manual
...
...
This diff is collapsed.
Click to expand it.
suites/hg/setup-data/setup-full.sh
+
8
−
0
View file @
0c73d5ff
...
...
@@ -3,6 +3,8 @@
# Simple script to fully setup a
#
# You still have to build the env by hand.
#
# /!\ This delete any existing data
set
-euo
pipefail
if
[
$#
-ne
3
]
;
then
...
...
@@ -18,6 +20,12 @@
data_env_directory
=
$2
repository_path
=
$3
desc
=
"
${
data_env_directory
}
/data-env.poulpe"
if
[
-e
"
$desc
"
]
;
then
echo
"DELETING EXISTING DATA"
rm
-f
"
$desc
"
fi
# XXX should probably automatically find script and run them. However there are
# few of them now so explicit listing seems simpler.
...
...
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