gitlab-qa 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0ad531bf801a69e5e18a9df200d92235791d228
|
4
|
+
data.tar.gz: da43c04b1a583bede10237208f3c44df8000413a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55271d4161762055138ace63cef2aa27d481e56017253516d1c3d2719c540d715ff32541268bbd8d6ac80ce5aca0477c2be1c496035ef909aad28c4cf05acf08
|
7
|
+
data.tar.gz: 494d2e9284a7bd9a2053482bd055ede19579be96325fa83ca011977019ff328458f55541ddb2895163de0ae74af83633144eede41c5eb80905236626e3b4748d
|
data/.gitlab-ci.yml
CHANGED
@@ -6,25 +6,36 @@ module Gitlab
|
|
6
6
|
|
7
7
|
IMAGE_NAME = 'gitlab/gitlab-qa'.freeze
|
8
8
|
|
9
|
-
|
9
|
+
ENVS = %w(GITLAB_USERNAME GITLAB_PASSWORD
|
10
|
+
GITLAB_URL EE_LICENSE).freeze
|
10
11
|
|
11
12
|
def initialize
|
12
13
|
@docker = Docker::Engine.new
|
13
14
|
end
|
14
15
|
|
15
|
-
# rubocop:disable Metrics/AbcSize
|
16
|
-
#
|
17
16
|
def test(gitlab)
|
18
|
-
|
19
|
-
|
17
|
+
test_address(gitlab.release, gitlab.tag, gitlab.address,
|
18
|
+
"#{gitlab.name}-specs", gitlab.network)
|
19
|
+
end
|
20
20
|
|
21
|
+
# rubocop:disable Metrics/MethodLength
|
22
|
+
#
|
23
|
+
def test_address(release, tag, address, name = nil, network = nil)
|
21
24
|
puts 'Running instance test scenarios for Gitlab ' \
|
22
|
-
"#{
|
25
|
+
"#{release.upcase} at #{address}"
|
26
|
+
|
27
|
+
args = ['Test::Instance', address]
|
28
|
+
|
29
|
+
@docker.run(IMAGE_NAME, "#{release}-#{tag}", *args) do |command|
|
30
|
+
command << %(-t --rm)
|
31
|
+
command << "--net=#{network}" if network
|
32
|
+
|
33
|
+
ENVS.each do |env|
|
34
|
+
command << %(-e #{env}="$#{env}") if ENV[env]
|
35
|
+
end
|
23
36
|
|
24
|
-
|
25
|
-
command << "
|
26
|
-
command << %(-e #{env}="$#{env}") if env
|
27
|
-
command << "--name #{gitlab.name}-specs"
|
37
|
+
command << '-v /tmp/gitlab-qa-screenshots:/home/qa/tmp/'
|
38
|
+
command << "--name #{name || ('gitlab-specs-' + Time.now.to_i)}"
|
28
39
|
end
|
29
40
|
end
|
30
41
|
end
|
@@ -8,9 +8,9 @@ module Gitlab
|
|
8
8
|
# including staging and on-premises installation.
|
9
9
|
#
|
10
10
|
class Any < Scenario::Template
|
11
|
-
def perform(address)
|
12
|
-
|
13
|
-
|
11
|
+
def perform(release, tag, address)
|
12
|
+
Docker::Specs.perform do |instance|
|
13
|
+
instance.test_address(release, tag, address)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/lib/gitlab/qa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-qa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grzegorz Bizon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.5.
|
139
|
+
rubygems_version: 2.5.2
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Integration tests for GitLab
|