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
b08ce8ba
Commit
b08ce8ba
authored
Jul 20, 2021
by
Rémy Coutable
Committed by
Albert Salim
Jul 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: Set CRYSTALBALL on 2-hourly scheduled pipelines
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
a35e8a20
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
.gitlab-ci.yml
.gitlab-ci.yml
+4
-0
.gitlab/ci/rails.gitlab-ci.yml
.gitlab/ci/rails.gitlab-ci.yml
+0
-1
spec/crystalball_env.rb
spec/crystalball_env.rb
+1
-1
No files found.
.gitlab-ci.yml
View file @
b08ce8ba
...
@@ -38,6 +38,10 @@ workflow:
...
@@ -38,6 +38,10 @@ workflow:
when
:
never
when
:
never
# For merge requests, create a pipeline.
# For merge requests, create a pipeline.
-
if
:
'
$CI_MERGE_REQUEST_IID'
-
if
:
'
$CI_MERGE_REQUEST_IID'
# For the 2-hourly scheduled pipelines, we set specific variables
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH
&&
$CI_PIPELINE_SOURCE
==
"schedule"
&&
$FREQUENCY
==
"2-hourly"'
variables
:
CRYSTALBALL
:
"
true"
# For `$CI_DEFAULT_BRANCH` branch, create a pipeline (this includes on schedules, pushes, merges, etc.).
# For `$CI_DEFAULT_BRANCH` branch, create a pipeline (this includes on schedules, pushes, merges, etc.).
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH'
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH'
# For tags, create a pipeline.
# For tags, create a pipeline.
...
...
.gitlab/ci/rails.gitlab-ci.yml
View file @
b08ce8ba
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
variables
:
variables
:
RUBY_GC_MALLOC_LIMIT
:
67108864
RUBY_GC_MALLOC_LIMIT
:
67108864
RUBY_GC_MALLOC_LIMIT_MAX
:
134217728
RUBY_GC_MALLOC_LIMIT_MAX
:
134217728
CRYSTALBALL
:
"
true"
RECORD_DEPRECATIONS
:
"
true"
RECORD_DEPRECATIONS
:
"
true"
needs
:
[
"
setup-test-env"
,
"
retrieve-tests-metadata"
,
"
compile-test-assets"
,
"
detect-tests"
]
needs
:
[
"
setup-test-env"
,
"
retrieve-tests-metadata"
,
"
compile-test-assets"
,
"
detect-tests"
]
script
:
script
:
...
...
spec/crystalball_env.rb
View file @
b08ce8ba
...
@@ -6,7 +6,7 @@ module CrystalballEnv
...
@@ -6,7 +6,7 @@ module CrystalballEnv
extend
self
extend
self
def
start!
def
start!
return
unless
ENV
[
'CRYSTALBALL'
]
&&
ENV
[
'CI_PIPELINE_SOURCE'
]
==
'schedule'
&&
ENV
[
'FREQUENCY'
]
==
'2-hourly'
return
unless
ENV
[
'CRYSTALBALL'
]
require
'crystalball'
require
'crystalball'
require_relative
'../tooling/lib/tooling/crystalball/coverage_lines_execution_detector'
require_relative
'../tooling/lib/tooling/crystalball/coverage_lines_execution_detector'
...
...
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