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
e23fb005
Commit
e23fb005
authored
Jun 12, 2018
by
blackst0ne
Committed by
Rémy Coutable
Jun 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CI job to check Gemfile.rails5.lock
parent
09d0dbb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
.gitlab-ci.yml
.gitlab-ci.yml
+7
-0
changelogs/unreleased/blackst0ne-add-gemfile-rails5-lock-check.yml
...s/unreleased/blackst0ne-add-gemfile-rails5-lock-check.yml
+5
-0
scripts/rails5-gemfile-lock-check
scripts/rails5-gemfile-lock-check
+19
-0
No files found.
.gitlab-ci.yml
View file @
e23fb005
...
@@ -415,6 +415,7 @@ setup-test-env:
...
@@ -415,6 +415,7 @@ setup-test-env:
script
:
script
:
-
bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init'
-
bundle exec ruby -Ispec -e 'require "spec_helper" ; TestEnv.init'
-
scripts/gitaly-test-build
# Do not use 'bundle exec' here
-
scripts/gitaly-test-build
# Do not use 'bundle exec' here
-
BUNDLE_GEMFILE=Gemfile.rails5 bundle install $BUNDLE_INSTALL_FLAGS
artifacts
:
artifacts
:
expire_in
:
7d
expire_in
:
7d
paths
:
paths
:
...
@@ -590,6 +591,12 @@ downtime_check:
...
@@ -590,6 +591,12 @@ downtime_check:
-
/(^docs[\/-].*|.*-docs$)/
-
/(^docs[\/-].*|.*-docs$)/
-
/(^qa[\/-].*|.*-qa$)/
-
/(^qa[\/-].*|.*-qa$)/
rails5_gemfile_lock_check
:
<<
:
*dedicated-no-docs-no-db-pull-cache-job
<<
:
*except-docs-and-qa
script
:
-
scripts/rails5-gemfile-lock-check
ee_compat_check
:
ee_compat_check
:
<<
:
*rake-exec
<<
:
*rake-exec
except
:
except
:
...
...
changelogs/unreleased/blackst0ne-add-gemfile-rails5-lock-check.yml
0 → 100644
View file @
e23fb005
---
title
:
Add CI job to check Gemfile.rails5.lock
merge_request
:
19605
author
:
"
@blackst0ne"
type
:
other
scripts/rails5-gemfile-lock-check
0 → 100755
View file @
e23fb005
#!/usr/bin/env bash
echo
-e
"=> Checking if Gemfile.rails5.lock is up-to-date...
\\
n"
cp
Gemfile.rails5.lock Gemfile.rails5.lock.orig
BUNDLE_GEMFILE
=
Gemfile.rails5 bundle
install
"
$BUNDLE_INSTALL_FLAGS
"
diff
-u
Gemfile.rails5.lock.orig Gemfile.rails5.lock
>
/dev/null 2>&1
if
[
$?
==
1
]
then
diff
-u
Gemfile.rails5.lock.orig Gemfile.rails5.lock
echo
-e
"
\\
n✖ ERROR: Gemfile.rails5.lock is not up-to-date!
Please run 'BUNDLE_GEMFILE=Gemfile.rails5 bundle install'
\\
n"
>
&2
exit
1
fi
echo
"✔ Gemfile.rails5.lock is up-to-date"
exit
0
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