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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
21ddfabe
Commit
21ddfabe
authored
Jun 15, 2020
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move rspec command into rspec_helpers
parent
1710adae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
.gitlab/ci/rails.gitlab-ci.yml
.gitlab/ci/rails.gitlab-ci.yml
+1
-1
scripts/rspec_helpers.sh
scripts/rspec_helpers.sh
+12
-0
No files found.
.gitlab/ci/rails.gitlab-ci.yml
View file @
21ddfabe
...
...
@@ -355,7 +355,7 @@ rspec foss-impact:
-
run_timed_command "scripts/gitaly-test-spawn"
-
source scripts/rspec_helpers.sh
-
tooling/bin/find_foss_tests tmp/matching_foss_tests.txt
-
'
if
[[
-n
"$(cat
tmp/matching_foss_tests.txt)"
]];
then
rspec_simple_job
"--tag
~quarantine
--tag
~geo
--tag
~level:migration
$(cat
tmp/matching_foss_tests.txt)";
fi'
-
rspec_matched_tests tmp/matching_foss_tests.txt "--tag ~quarantine --tag ~geo --tag ~level:migration"
artifacts
:
expire_in
:
7d
paths
:
...
...
scripts/rspec_helpers.sh
View file @
21ddfabe
...
...
@@ -110,3 +110,15 @@ function rspec_paralellized_job() {
date
}
function
rspec_matched_tests
()
{
local
matching_tests_file
=
${
1
}
local
rspec_opts
=
${
2
}
local
test_files
=
"
$(
cat
"
${
matching_tests_file
}
"
)
"
if
[[
-n
$test_files
]]
;
then
rspec_simple_job
"
${
rspec_opts
}
${
test_files
}
"
else
echo
"No test files to run"
fi
}
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