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
Boxiang Sun
gitlab-ce
Commits
4a5c6a8e
Commit
4a5c6a8e
authored
Apr 04, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename cron_nightly_build to nightly
parent
0c153af7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
spec/factories/ci/trigger_schedules.rb
spec/factories/ci/trigger_schedules.rb
+3
-3
spec/models/ci/trigger_schedule_spec.rb
spec/models/ci/trigger_schedule_spec.rb
+1
-1
spec/workers/trigger_schedule_worker_spec.rb
spec/workers/trigger_schedule_worker_spec.rb
+2
-2
No files found.
spec/factories/ci/trigger_schedules.rb
View file @
4a5c6a8e
...
@@ -14,17 +14,17 @@ FactoryGirl.define do
...
@@ -14,17 +14,17 @@ FactoryGirl.define do
end
end
end
end
trait
:
cron_nightly_build
do
trait
:
nightly
do
cron
'0 1 * * *'
cron
'0 1 * * *'
cron_time_zone
Gitlab
::
Ci
::
CronParser
::
VALID_SYNTAX_SAMPLE_TIME_ZONE
cron_time_zone
Gitlab
::
Ci
::
CronParser
::
VALID_SYNTAX_SAMPLE_TIME_ZONE
end
end
trait
:
cron_weekly_build
do
trait
:
weekly
do
cron
'0 1 * * 6'
cron
'0 1 * * 6'
cron_time_zone
Gitlab
::
Ci
::
CronParser
::
VALID_SYNTAX_SAMPLE_TIME_ZONE
cron_time_zone
Gitlab
::
Ci
::
CronParser
::
VALID_SYNTAX_SAMPLE_TIME_ZONE
end
end
trait
:
cron_monthly_build
do
trait
:
monthly
do
cron
'0 1 22 * *'
cron
'0 1 22 * *'
cron_time_zone
Gitlab
::
Ci
::
CronParser
::
VALID_SYNTAX_SAMPLE_TIME_ZONE
cron_time_zone
Gitlab
::
Ci
::
CronParser
::
VALID_SYNTAX_SAMPLE_TIME_ZONE
end
end
...
...
spec/models/ci/trigger_schedule_spec.rb
View file @
4a5c6a8e
...
@@ -6,7 +6,7 @@ describe Ci::TriggerSchedule, models: true do
...
@@ -6,7 +6,7 @@ describe Ci::TriggerSchedule, models: true do
it
{
is_expected
.
to
respond_to
:ref
}
it
{
is_expected
.
to
respond_to
:ref
}
describe
'#schedule_next_run!'
do
describe
'#schedule_next_run!'
do
let
(
:trigger_schedule
)
{
create
(
:ci_trigger_schedule
,
:
cron_nightly_build
,
next_run_at:
nil
)
}
let
(
:trigger_schedule
)
{
create
(
:ci_trigger_schedule
,
:
nightly
,
next_run_at:
nil
)
}
before
do
before
do
trigger_schedule
.
schedule_next_run!
trigger_schedule
.
schedule_next_run!
...
...
spec/workers/trigger_schedule_worker_spec.rb
View file @
4a5c6a8e
...
@@ -8,7 +8,7 @@ describe TriggerScheduleWorker do
...
@@ -8,7 +8,7 @@ describe TriggerScheduleWorker do
end
end
context
'when there is a scheduled trigger within next_run_at'
do
context
'when there is a scheduled trigger within next_run_at'
do
let!
(
:trigger_schedule
)
{
create
(
:ci_trigger_schedule
,
:
cron_nightly_build
,
:force_triggable
)
}
let!
(
:trigger_schedule
)
{
create
(
:ci_trigger_schedule
,
:
nightly
,
:force_triggable
)
}
before
do
before
do
worker
.
perform
worker
.
perform
...
@@ -29,7 +29,7 @@ describe TriggerScheduleWorker do
...
@@ -29,7 +29,7 @@ describe TriggerScheduleWorker do
end
end
context
'when there are no scheduled triggers within next_run_at'
do
context
'when there are no scheduled triggers within next_run_at'
do
let!
(
:trigger_schedule
)
{
create
(
:ci_trigger_schedule
,
:
cron_nightly_build
)
}
let!
(
:trigger_schedule
)
{
create
(
:ci_trigger_schedule
,
:
nightly
)
}
before
do
before
do
worker
.
perform
worker
.
perform
...
...
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