deploy-context 0.11.44 → 0.11.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bin/deploy-context +1 -24
- data/deploy-context.feature.disable +22 -0
- data/deploy-context.old +46 -0
- data/features/deploy-context.feature +9 -18
- data/features/step_definitions/deploy-context.rb +12 -39
- data/lib/deploy-context/context/binary.rb +23 -0
- data/lib/deploy-context/deploy/git.rb +2 -2
- data/lib/deploy-context.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceb8d481cf5893bf5ea428ac9e9c6020d54e620189a5ee7f764bd781993f9195
|
4
|
+
data.tar.gz: 10832d4bbbd7f2a4fabccd6d1e0ffb405a31360fbb684affc12dfa3f42522c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64bc9432fc7e675dabce05a24e333290522f982ceb2d7f0aa57593d667c850f7b00bfc31107ae92e657c594562c79217f649953b44f8246032ce5d4b38874781
|
7
|
+
data.tar.gz: 5d3d55b92d7a7d540c424c7338ba4ffc31ae363856ffe6591971ed158251545327592d200d2b9224473ef0a3ab78dd146bb423203dbbfaac69d1f95819902527
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bin/deploy-context
CHANGED
@@ -1,28 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require 'deploy-context'
|
4
|
-
require 'deploy-context/deploy'
|
5
|
-
|
6
3
|
deployer = Context::DeployContext.new(Dir.pwd)
|
7
4
|
|
8
|
-
|
9
|
-
deployer.cycle
|
10
|
-
else
|
11
|
-
case ARGV[0]
|
12
|
-
when 'once'
|
13
|
-
puts "Parameter passe #{ARGV[0]}"
|
14
|
-
deployer.cycle
|
15
|
-
when 'always'
|
16
|
-
while true do
|
17
|
-
deployer.cycle
|
18
|
-
end
|
19
|
-
when 'bump'
|
20
|
-
deployer.minor_bump
|
21
|
-
when 'release'
|
22
|
-
deployer.major_bump
|
23
|
-
else
|
24
|
-
puts "Unkonown setting #{ARGV[0]}"
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
|
5
|
+
require 'deploy-context/context/binary'
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# language: fr
|
2
|
+
@fr @deploycontext
|
3
|
+
Fonctionnalité: Je suis le testeur du déployeur de deploy-context
|
4
|
+
|
5
|
+
Scénario: Initialisé deploy-context
|
6
|
+
Étant donné que deploy-context est absent localement
|
7
|
+
Alors cloner le projet git@github.com:JimboDragonGit/deploy-context.git
|
8
|
+
|
9
|
+
Scénario: Relâcher deploy-context
|
10
|
+
Étant donné que deploy-context est présent localement
|
11
|
+
Alors compiler deploy-context
|
12
|
+
Et publié deploy-context
|
13
|
+
|
14
|
+
Scénario: Tester deploy-context
|
15
|
+
Étant donné que deploy-context est présent au public
|
16
|
+
Alors installer deploy-context
|
17
|
+
Et tester deploy-context
|
18
|
+
|
19
|
+
Scénario: Bump deploy-context
|
20
|
+
Étant donné que deploy-context est tester avec succès
|
21
|
+
Alors installer deploy-context
|
22
|
+
Et tester deploy-context
|
data/deploy-context.old
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
|
2
|
+
# Étantdonnéque('deploy-context est présent localement') do
|
3
|
+
# Dir.chdir deployer.context_folder
|
4
|
+
# end
|
5
|
+
|
6
|
+
# Étantdonnéque('deploy-context est présent au public') do
|
7
|
+
# deployer.wait_until_release_available
|
8
|
+
# end
|
9
|
+
|
10
|
+
# Étantdonnéque('deploy-context est tester avec succès') do
|
11
|
+
# deployer.test_context_successful?
|
12
|
+
# end
|
13
|
+
|
14
|
+
# Alors('compiler deploy-context une seul fois') do
|
15
|
+
# system('deploy-context once')
|
16
|
+
# end
|
17
|
+
|
18
|
+
# Alors('publié deploy-context') do
|
19
|
+
# system('deploy-context once')
|
20
|
+
# end
|
21
|
+
|
22
|
+
# Alors('attendre que deploy-context soit disponible au public') do
|
23
|
+
# deployer.wait_until_release_available
|
24
|
+
# end
|
25
|
+
|
26
|
+
# Alors('installer deploy-context') do
|
27
|
+
# deployer.install
|
28
|
+
# end
|
29
|
+
|
30
|
+
# Alors('tester deploy-context') do
|
31
|
+
# if deployer.test_context_successful?
|
32
|
+
# puts "newer version installed successfully for #{deployer.context_name} and version #{GVB.version}"
|
33
|
+
# deployer.patch_bump
|
34
|
+
# # patch_reset(context)
|
35
|
+
# else
|
36
|
+
# puts "newer version not installed for #{deployer.context_name} and version #{GVB.version}"
|
37
|
+
# end
|
38
|
+
# end
|
39
|
+
|
40
|
+
# Étantdonnéque('deploy-context est absent localement') do
|
41
|
+
# deployer.clean if deployer.present_localy?
|
42
|
+
# end
|
43
|
+
|
44
|
+
# Alors('cloner le projet git@github.com:JimboDragonGit\/deploy-context.git') do
|
45
|
+
# deployer.clean if deployer.present_localy?
|
46
|
+
# end
|
@@ -2,21 +2,12 @@
|
|
2
2
|
@fr @deploycontext
|
3
3
|
Fonctionnalité: Je suis le testeur du déployeur de deploy-context
|
4
4
|
|
5
|
-
Scénario:
|
6
|
-
Étant donné que
|
7
|
-
Alors
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
Scénario: Tester deploy-context
|
15
|
-
Étant donné que deploy-context est présent au public
|
16
|
-
Alors installer deploy-context
|
17
|
-
Et tester deploy-context
|
18
|
-
|
19
|
-
Scénario: Bump deploy-context
|
20
|
-
Étant donné que deploy-context est tester avec succès
|
21
|
-
Alors installer deploy-context
|
22
|
-
Et tester deploy-context
|
5
|
+
Plan du Scénario: Démarrer un simple cycle de projet
|
6
|
+
Étant donné que le projet <project_name> à la bonne version
|
7
|
+
Alors démarrer un simple cycle de <project_name>
|
8
|
+
Et bumper la version de <project_name>
|
9
|
+
Et déployer le projet <project_name>
|
10
|
+
|
11
|
+
Exemples:
|
12
|
+
| project_name |
|
13
|
+
| deploy-context |
|
@@ -1,46 +1,19 @@
|
|
1
|
-
Étantdonnéque('
|
2
|
-
deployer.
|
3
|
-
|
4
|
-
|
5
|
-
Étantdonnéque('deploy-context est présent au public') do
|
6
|
-
deployer.wait_until_release_available
|
7
|
-
end
|
8
|
-
|
9
|
-
Étantdonnéque('deploy-context est tester avec succès') do
|
10
|
-
end
|
11
|
-
|
12
|
-
Alors('compiler deploy-context') do
|
13
|
-
deployer.build
|
14
|
-
end
|
15
|
-
|
16
|
-
Alors('publié deploy-context') do
|
17
|
-
deployer.commit
|
18
|
-
deployer.patch_bump
|
19
|
-
deployer.release
|
20
|
-
end
|
21
|
-
|
22
|
-
Alors('attendre que deploy-context soit disponible au public') do
|
23
|
-
deployer.wait_until_release_available
|
24
|
-
end
|
25
|
-
|
26
|
-
Alors('installer deploy-context') do
|
27
|
-
deployer.install
|
28
|
-
end
|
29
|
-
|
30
|
-
Alors('tester deploy-context') do
|
31
|
-
if deployer.test_context_successful?
|
32
|
-
puts "newer version installed successfully for #{deployer.context_name} and version #{GVB.version}"
|
33
|
-
deployer.patch_bump
|
34
|
-
# patch_reset(context)
|
1
|
+
Étantdonnéque('le projet {word} à la bonne version') do |project_name|
|
2
|
+
if project_name == deployer.context_name
|
3
|
+
Dir.chdir deployer.context_folder
|
35
4
|
else
|
36
|
-
|
5
|
+
Dir.chdir File.join(deployer.contexts_container(deployer), project_name)
|
37
6
|
end
|
38
7
|
end
|
39
8
|
|
40
|
-
|
41
|
-
|
9
|
+
Alors('démarrer un simple cycle de {word}') do |project_name|
|
10
|
+
system([project_name, 'once'].join(' '))
|
11
|
+
end
|
12
|
+
|
13
|
+
Alors('bumper la version de {word}') do |project_name|
|
14
|
+
system([project_name, 'bump'].join(' '))
|
42
15
|
end
|
43
16
|
|
44
|
-
Alors('
|
45
|
-
|
17
|
+
Alors('déployer le projet {word}') do |project_name|
|
18
|
+
system([project_name, 'release'].join(' '))
|
46
19
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require_relative '../../deploy-context'
|
4
|
+
|
5
|
+
if ARGV[0].nil?
|
6
|
+
deployer.cycle
|
7
|
+
else
|
8
|
+
case ARGV[0]
|
9
|
+
when 'once'
|
10
|
+
puts "Parameter passe #{ARGV[0]}"
|
11
|
+
deployer.cycle
|
12
|
+
when 'always'
|
13
|
+
while true do
|
14
|
+
deployer.cycle
|
15
|
+
end
|
16
|
+
when 'bump'
|
17
|
+
deployer.minor_bump
|
18
|
+
when 'release'
|
19
|
+
deployer.major_bump
|
20
|
+
else
|
21
|
+
puts "Unkonown setting #{ARGV[0]}"
|
22
|
+
end
|
23
|
+
end
|
@@ -38,8 +38,8 @@ module Context
|
|
38
38
|
|
39
39
|
def git_update_available?(context)
|
40
40
|
git_build(context)
|
41
|
-
git ['log', "v#{context.version}"]
|
42
|
-
|
41
|
+
# git ['log', "v#{context.version}"]
|
42
|
+
git ['ls-remote origin', "v#{context.version}"]
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
data/lib/deploy-context.rb
CHANGED
@@ -9,7 +9,6 @@ require_relative 'deploy-context/deploy/cucumber'
|
|
9
9
|
|
10
10
|
module Context
|
11
11
|
class DeployContext < Deploy
|
12
|
-
include DeployHelper
|
13
12
|
include GitDeployerHelper
|
14
13
|
include RubyDeployerHelper
|
15
14
|
include CucumberDeployerHelper
|
@@ -82,6 +81,7 @@ module Context
|
|
82
81
|
end
|
83
82
|
|
84
83
|
def new_update_available?
|
84
|
+
git_update_available?(self)
|
85
85
|
end
|
86
86
|
end
|
87
87
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy-context
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.47
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Provencher
|
@@ -97,11 +97,14 @@ files:
|
|
97
97
|
- README.md
|
98
98
|
- Rakefile
|
99
99
|
- bin/deploy-context
|
100
|
+
- deploy-context.feature.disable
|
100
101
|
- deploy-context.gemspec
|
102
|
+
- deploy-context.old
|
101
103
|
- features/deploy-context.feature
|
102
104
|
- features/step_definitions/deploy-context.rb
|
103
105
|
- features/support/env.rb
|
104
106
|
- lib/deploy-context.rb
|
107
|
+
- lib/deploy-context/context/binary.rb
|
105
108
|
- lib/deploy-context/context/deploy.rb
|
106
109
|
- lib/deploy-context/deploy.rb
|
107
110
|
- lib/deploy-context/deploy/cucumber.rb
|
metadata.gz.sig
CHANGED
Binary file
|