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
75548653
Commit
75548653
authored
Aug 19, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
a245ea31
4d4e88df
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
97 additions
and
13 deletions
+97
-13
.dockerignore
.dockerignore
+72
-0
.gitlab/ci/review.gitlab-ci.yml
.gitlab/ci/review.gitlab-ci.yml
+1
-1
config/initializers/0_inject_enterprise_edition_module.rb
config/initializers/0_inject_enterprise_edition_module.rb
+2
-0
qa/Dockerfile
qa/Dockerfile
+8
-4
qa/Gemfile
qa/Gemfile
+1
-0
qa/Gemfile.lock
qa/Gemfile.lock
+7
-6
qa/README.md
qa/README.md
+3
-2
qa/qa.rb
qa/qa.rb
+3
-0
No files found.
.dockerignore
0 → 100644
View file @
75548653
# `build_from_dir` can't find Dockerfile when `.dockerignore` is "*"
# See https://github.com/swipely/docker-api/issues/484
# Ignore all folders except qa/, config/initializers and the root of lib/ since
# the files we need to build the QA image are in these folders.
# Following are the files we need:
# - ./config/initializers/0_inject_enterprise_edition_module.rb
# - ./lib/gitlab.rb
# - ./qa/
# - ./INSTALLATION_TYPE
# - ./VERSION
/app/
/bin/
/builds/
/changelogs/
/config/environments/
/config/helpers/
/config/knative/
/config/locales/
/config/prometheus/
/config/routes/
/danger/
/db/
/doc/
/docker/
/ee/
/fixtures/
/templates/
/lint/
/lib/api/
/lib/assets/
/lib/backup/
/lib/banzai/
/lib/bitbucket/
/lib/server/
/lib/constraints/
/lib/registry/
/lib/policy/
/lib/feature/
/lib/flowdock/
/lib/generators/
/lib/gitaly/
/lib/gitlab/
/lib/api/
/lib/token/
/lib/mattermost/
/lib/teams/
/lib/storage/
/lib/auth/
/lib/peek/
/lib/prometheus/
/lib/quality/
/lib/rouge/
/lib/flaky/
/lib/zip/
/lib/sentry/
/lib/serializers/
/lib/support/
/lib/check/
/lib/tasks/
/locale/
/log/
/modules/
/plugins/
/public/
/rubocop/
/scripts/
/shared/
/spec/
/symbol/
/tmp/
/vendor/
.gitlab/ci/review.gitlab-ci.yml
View file @
75548653
...
...
@@ -50,7 +50,7 @@ build-qa-image:
<<
:
*review-docker
stage
:
test
script
:
-
time docker build --cache-from ${LATEST_QA_IMAGE} --tag ${QA_IMAGE}
./qa
/
-
time docker build --cache-from ${LATEST_QA_IMAGE} --tag ${QA_IMAGE}
--file ./qa/Dockerfile .
/
-
echo "${CI_JOB_TOKEN}" | docker login --username gitlab-ci-token --password-stdin ${CI_REGISTRY}
-
time docker push ${QA_IMAGE}
...
...
config/initializers/0_inject_enterprise_edition_module.rb
View file @
75548653
# frozen_string_literal: true
require
'active_support/inflector'
module
InjectEnterpriseEditionModule
def
prepend_if_ee
(
constant
)
prepend
(
constant
.
constantize
)
if
Gitlab
.
ee?
...
...
qa/Dockerfile
View file @
75548653
...
...
@@ -47,9 +47,13 @@ RUN export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
&&
\
apt-get update
-y
&&
apt-get
install
google-cloud-sdk kubectl
-y
WORKDIR
/home/qa
COPY
./Gemfile* ./
RUN
bundle
install
COPY
./ ./
WORKDIR
/home/gitlab/qa
COPY
./qa/Gemfile* /home/gitlab/qa/
COPY
./config/initializers/0_inject_enterprise_edition_module.rb /home/gitlab/config/initializers/
COPY
./lib/gitlab.rb /home/gitlab/lib/
COPY
./INSTALLATION_TYPE /home/gitlab/
COPY
./VERSION /home/gitlab/
RUN
cd
/home/gitlab/qa/
&&
bundle
install
COPY
./qa /home/gitlab/qa
ENTRYPOINT
["bin/test"]
qa/Gemfile
View file @
75548653
source
'https://rubygems.org'
gem
'gitlab-qa'
gem
'activesupport'
,
'5.2.3'
# This should stay in sync with the root's Gemfile
gem
'pry-byebug'
,
'~> 3.5.1'
,
platform: :mri
gem
'capybara'
,
'~> 2.16.1'
gem
'capybara-screenshot'
,
'~> 1.0.18'
...
...
qa/Gemfile.lock
View file @
75548653
GEM
remote: https://rubygems.org/
specs:
activesupport (5.
1.4
)
activesupport (5.
2.3
)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (
~> 0.7
)
i18n (
>= 0.7, < 2
)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
...
...
@@ -28,7 +28,7 @@ GEM
childprocess (0.9.0)
ffi (~> 1.0, >= 1.0.11)
coderay (1.1.2)
concurrent-ruby (1.
0
.5)
concurrent-ruby (1.
1
.5)
diff-lcs (1.3)
domain_name (0.5.20170404)
unf (>= 0.0.5, < 1.0.0)
...
...
@@ -38,7 +38,7 @@ GEM
gitlab-qa (4.0.0)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (
0.9.1
)
i18n (
1.6.0
)
concurrent-ruby (~> 1.0)
knapsack (1.17.1)
rake
...
...
@@ -50,7 +50,7 @@ GEM
mime-types-data (3.2016.0521)
mini_mime (1.0.0)
mini_portile2 (2.4.0)
minitest (5.11.
1
)
minitest (5.11.
3
)
netrc (0.11.0)
nokogiri (1.10.4)
mini_portile2 (~> 2.4.0)
...
...
@@ -94,7 +94,7 @@ GEM
childprocess (~> 0.5)
rubyzip (~> 1.2, >= 1.2.2)
thread_safe (0.3.6)
tzinfo (1.2.
4
)
tzinfo (1.2.
5
)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
...
...
@@ -106,6 +106,7 @@ PLATFORMS
ruby
DEPENDENCIES
activesupport (= 5.2.3)
airborne (~> 0.2.13)
capybara (~> 2.16.1)
capybara-screenshot (~> 1.0.18)
...
...
qa/README.md
View file @
75548653
...
...
@@ -123,10 +123,11 @@ To set multiple cookies, separate them with the `;` character, for example: `QA_
Once you have made changes to the CE/EE repositories, you may want to build a
Docker image to test locally instead of waiting for the
`gitlab-ce-qa`
or
`gitlab-ee-qa`
nightly builds. To do that, you can run from this directory:
`gitlab-ee-qa`
nightly builds. To do that, you can run
**
from the top
`gitlab`
directory
**
(one level up from this directory):
```
sh
docker build
-t
gitlab/gitlab-ce-qa:nightly
.
docker build
-t
gitlab/gitlab-ce-qa:nightly
--file
./qa/Dockerfile ./
```
[
GDK
]:
https://gitlab.com/gitlab-org/gitlab-development-kit/
...
...
qa/qa.rb
View file @
75548653
...
...
@@ -4,6 +4,9 @@ $: << File.expand_path(File.dirname(__FILE__))
Encoding
.
default_external
=
'UTF-8'
require_relative
'../lib/gitlab'
require_relative
'../config/initializers/0_inject_enterprise_edition_module'
module
QA
##
# GitLab QA runtime classes, mostly singletons.
...
...
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