Commit ff2d1dd2 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add initial fixtures for CI builds

parent d032c5b9
Gitlab::Seeder.quiet do
project = Project.first
commits = project.repository.commits('master', nil, 10)
commits_sha = commits.map { |commit| commit.raw.id }
ci_commits = commits_sha.map do |sha|
project.ensure_ci_commit(sha)
end
ci_commits.each do |ci_commit|
ci_commit.create_builds('master', nil, User.first)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment