Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
49b119fa
Commit
49b119fa
authored
Jul 31, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old test seeds
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
61f70334
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
36 deletions
+0
-36
db/fixtures/test/001_repo.rb
db/fixtures/test/001_repo.rb
+0
-36
spec/seed_project.tar.gz
spec/seed_project.tar.gz
+0
-0
No files found.
db/fixtures/test/001_repo.rb
View file @
49b119fa
require
'fileutils'
print
"Unpacking seed repository..."
SEED_REPO
=
'seed_project.tar.gz'
REPO_PATH
=
Rails
.
root
.
join
(
'tmp'
,
'repositories'
)
# Make whatever directories we need to make
FileUtils
.
mkdir_p
(
REPO_PATH
)
# Copy the archive to the repo path
FileUtils
.
cp
(
Rails
.
root
.
join
(
'spec'
,
SEED_REPO
),
REPO_PATH
)
# chdir to the repo path
FileUtils
.
cd
(
REPO_PATH
)
do
# Extract the archive
`tar -xf
#{
SEED_REPO
}
`
# Remove the copy
FileUtils
.
rm
(
SEED_REPO
)
end
puts
' done.'
print
"Creating seed satellite..."
SATELLITE_PATH
=
Rails
.
root
.
join
(
'tmp'
,
'satellite'
)
# Make directory
FileUtils
.
mkdir_p
(
SATELLITE_PATH
)
# Clear any potential directory
FileUtils
.
rm_rf
(
"
#{
SATELLITE_PATH
}
/gitlabhq"
)
# Chdir, clone from the seed
FileUtils
.
cd
(
SATELLITE_PATH
)
do
# Clone the satellite
`git clone --quiet
#{
REPO_PATH
}
/gitlabhq
#{
SATELLITE_PATH
}
/gitlabhq`
end
puts
' done.'
spec/seed_project.tar.gz
deleted
100644 → 0
View file @
61f70334
File deleted
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment