roro 0.3.23 → 0.3.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +5 -12
- data/.gitignore +4 -0
- data/CODE_OF_CONDUCT.md +25 -17
- data/lib/roro/cli/generate/generate.rb +3 -3
- data/lib/roro/cli/generate/generate_containers.rb +3 -1
- data/lib/roro/cli.rb +8 -0
- data/lib/roro/configurators/adventure_picker.rb +6 -3
- data/lib/roro/configurators/configurator.rb +2 -2
- data/lib/roro/configurators/question_asker.rb +10 -4
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/django.yml +3 -2
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_two/{settings.py → settings.py.tt} +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/stories/roll_your_own/test/stage_one/stage_one_test.rb +8 -3
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/{fatsufodo.yml → sashimi.yml} +0 -0
- data/lib/roro/version.rb +1 -1
- data/roro.gemspec +0 -2
- metadata +5 -6
- data/process.yml +0 -401
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19be35517b076c033f63af8c5ce2663976a44c0985ae01e2b385a1e3185ace88
|
4
|
+
data.tar.gz: 363daa801e5edbbb26457cd10dd595a136651354e92a013501d480686e4a372a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a7d48d17152790425c6eb85a18373dca236adb2b9535f41ac32fbb152eb1bcccf6be260bd343a0c52fc8914edf40044bb2e49f5fbd3a7c358a7df8960faf2d5
|
7
|
+
data.tar.gz: 3d34abd1258190792277d4e0a3fb8ddef2cf33aecc48d46d766a8aae411713ce232ee666ffef8b2c834cf73b4400f884530503aa6ed69f992d2fd9964623038f
|
data/.circleci/config.yml
CHANGED
@@ -89,19 +89,12 @@ jobs:
|
|
89
89
|
<<: *defaults
|
90
90
|
steps:
|
91
91
|
- checkout
|
92
|
-
- run: rake install
|
93
92
|
- run: |
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
# - run: echo $RUBYGEMS_API_KEY
|
100
|
-
# - run: chmod +x ./.circleci/setup-gem-credentials.sh
|
101
|
-
# - run: ./.circleci/setup-gem-credentials.sh
|
102
|
-
# - run: chmod 0600 ./.gem/credentials
|
103
|
-
# - run: git checkout .
|
104
|
-
# - run: gem release
|
93
|
+
git config --global user.email "fred.schoeneman@gmail.com"
|
94
|
+
git config --global user.name "Fred Schoeneman"
|
95
|
+
- run: gem install gem-release
|
96
|
+
- run: gem bump
|
97
|
+
- run: gem release
|
105
98
|
|
106
99
|
workflows:
|
107
100
|
matrix-test-rollon:
|
data/.gitignore
CHANGED
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,29 +1,37 @@
|
|
1
1
|
# Contributor Covenant Code of Conduct
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
3
|
+
I want participation in this project to be fun for everyone regardless of age, body size, disability, ethnicity, level of experience,
|
4
|
+
nationality, personal appearance, race, religion, gender identity and expression,
|
5
|
+
or sexual identity and orientation.
|
11
6
|
|
12
7
|
## Our Standards
|
13
8
|
|
14
|
-
|
15
|
-
|
9
|
+
Some of these things make me happy:
|
10
|
+
|
11
|
+
* When you use welcoming and inclusive language
|
12
|
+
* When you write a user story from the perspective of someone with a different pronoun
|
13
|
+
* When you understand we all want the same things for ourselves, our families, and other people even if you disagree with the politics of how to get them
|
14
|
+
* When you invert and play with stereotypes
|
15
|
+
* When you focus on your own privilege and not on what you assume is that in others
|
16
|
+
* When you assume everybody has a positive intent
|
17
|
+
* When you listen carefully to criticism before accepting or rejecting it
|
18
|
+
* When you tell someone what you think they're asking before providing an answer
|
19
|
+
* When you ask before offering criticism
|
20
|
+
* When you acknowledge constructive criticism and either accept it or explain why you can not
|
21
|
+
* When you accept that sometimes your criticism will be rejected
|
22
|
+
* When you show empathy towards others
|
23
|
+
* When you are positive and supportive of someone's efforts
|
24
|
+
* When you assume as little as possible about others
|
25
|
+
* When you are cheerful, even if you have to fake
|
26
|
+
* When you give genuine compliments to others
|
27
|
+
|
16
28
|
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
29
|
|
23
30
|
Examples of unacceptable behavior by participants include:
|
24
31
|
|
25
|
-
*
|
26
|
-
|
32
|
+
* Unwelcome sexual attention or advances
|
33
|
+
* Teasing someone for something that person is sensitive about, or that a reasonable person might guess she is
|
34
|
+
* sensitive about.
|
27
35
|
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
36
|
* Public or private harassment
|
29
37
|
* Publishing others' private information, such as a physical or electronic
|
@@ -7,13 +7,13 @@ module Roro
|
|
7
7
|
aliases: :e,
|
8
8
|
banner: 'one, two, three',
|
9
9
|
desc: 'The environments to generate:',
|
10
|
-
default:
|
10
|
+
default: Roro::CLI.roro_environments
|
11
11
|
|
12
12
|
method_option :containers,
|
13
13
|
type: :array,
|
14
14
|
aliases: :c,
|
15
15
|
banner: 'container_one, container_two, container_three',
|
16
|
-
default:
|
16
|
+
default: Roro::CLI.roro_default_containers,
|
17
17
|
desc: 'The containers to generate:'
|
18
18
|
|
19
19
|
method_option :mise_en_place,
|
@@ -26,7 +26,7 @@ module Roro
|
|
26
26
|
type: :array,
|
27
27
|
aliases: :k,
|
28
28
|
banner: 'one.key two.key three.key',
|
29
|
-
default:
|
29
|
+
default: Roro::CLI.roro_environments,
|
30
30
|
desc: 'The names of your keys to generate. If none supplied, Roro will infer them from your .env files:'
|
31
31
|
|
32
32
|
desc 'generate', 'Generate stuff.'
|
@@ -8,12 +8,14 @@ module Roro
|
|
8
8
|
method_options :containers => :array
|
9
9
|
def generate_containers(*containers)
|
10
10
|
mise = Roro::CLI.mise
|
11
|
-
containers = options['containers'] || containers.empty? ? %w[frontend backend database] : containers
|
11
|
+
containers = options['containers'] || (containers.empty? ? %w[frontend backend database] : containers)
|
12
12
|
# siblings = Dir.glob('./*').select do |f|
|
13
13
|
# File.directory?(f)
|
14
14
|
# !f.match?(mise)
|
15
15
|
# end
|
16
16
|
# siblings = options[:containers] ? options[:containers] : default_containers
|
17
|
+
create_file("#{mise}/scripts/.keep")
|
18
|
+
|
17
19
|
containers.each { |s| s.split('/').last }.each do |container|
|
18
20
|
create_file("#{mise}/containers/#{container}/scripts/.keep")
|
19
21
|
create_file("#{mise}/containers/#{container}/env/.keep")
|
data/lib/roro/cli.rb
CHANGED
@@ -37,5 +37,13 @@ module Roro
|
|
37
37
|
def self.roro_environments
|
38
38
|
%w[base development production test staging ci]
|
39
39
|
end
|
40
|
+
|
41
|
+
def self.stack_documentation_root
|
42
|
+
'<a href="url">link text</a>'
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.roro_default_containers
|
46
|
+
%w[backend database frontend]
|
47
|
+
end
|
40
48
|
end
|
41
49
|
end
|
@@ -10,6 +10,8 @@ module Roro
|
|
10
10
|
no_commands do
|
11
11
|
def choose_adventure(stack)
|
12
12
|
build_inflection(stack)
|
13
|
+
say("Rolling story on from stack: #{@stack}\n\n")
|
14
|
+
say(@getsome)
|
13
15
|
choice = ask(@inflection)
|
14
16
|
story_name = story_from(choice.to_s)
|
15
17
|
"#{stack}/#{story_name}"
|
@@ -20,7 +22,8 @@ module Roro
|
|
20
22
|
prompt = inflection_prompt
|
21
23
|
options = inflection_options
|
22
24
|
prompt_options = humanize(options)
|
23
|
-
@
|
25
|
+
@getsome = "#{prompt}\n"
|
26
|
+
@inflection = ["#{prompt_options}\n\n", "Choices: [#{set_color(options.keys.map { |k| k.to_i }.join(' '), :blue)}]"]
|
24
27
|
end
|
25
28
|
|
26
29
|
def inflection_prompt
|
@@ -45,9 +48,9 @@ module Roro
|
|
45
48
|
array = []
|
46
49
|
hash.map do |key, value|
|
47
50
|
preface = get_story_preface("#{@stack}/#{value}")
|
48
|
-
array << "
|
51
|
+
array << "#{set_color("(#{key})", :bold)} #{set_color(value, :blue, :bold)}\n\s\s\s\s#{preface}"
|
49
52
|
end
|
50
|
-
array.join
|
53
|
+
array.join("\n\n")
|
51
54
|
end
|
52
55
|
|
53
56
|
def get_story_preface(story)
|
@@ -50,8 +50,8 @@ module Roro
|
|
50
50
|
|
51
51
|
def override_environment_variables
|
52
52
|
@env.each do |e, v| v.each do |k, v|
|
53
|
-
answer = @asker.confirm_default(@builder.override(e, k, v))
|
54
|
-
v[:value] = answer
|
53
|
+
answer = @asker.confirm_default(@builder.override(e, k, v), v)
|
54
|
+
answer.eql?('') ? return : v[:value] = answer
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
@@ -13,15 +13,21 @@ module Roro
|
|
13
13
|
answer.size > 1 ? answer : override_default(question)
|
14
14
|
end
|
15
15
|
|
16
|
-
def confirm_default(question)
|
17
|
-
options = { "y": "yes", "n": "no"}
|
16
|
+
def confirm_default(question, default)
|
17
|
+
options = { "y": "yes", "n": "no", 'a': 'accept all defaults'}
|
18
18
|
humanized_options = options.map {|key, value|
|
19
19
|
"(#{key}) #{value}"
|
20
20
|
}
|
21
21
|
getsome = "Would you like to accept the default value?\n"
|
22
22
|
prompt = [question, getsome, humanized_options, "\n"].join("\n")
|
23
|
-
|
24
|
-
|
23
|
+
case ask(prompt)
|
24
|
+
when 'y'
|
25
|
+
default
|
26
|
+
when 'n'
|
27
|
+
override_default(question)
|
28
|
+
when 'a'
|
29
|
+
''
|
30
|
+
end
|
25
31
|
end
|
26
32
|
end
|
27
33
|
end
|
data/lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/django.yml
CHANGED
@@ -24,11 +24,12 @@ env:
|
|
24
24
|
|
25
25
|
actions:
|
26
26
|
- directory 'stage_one', '.', @env
|
27
|
-
- run "sudo docker-compose run web django-admin startproject \"#{@env[:base][:app_name][:value]}\" . &&
|
27
|
+
- run "sudo docker-compose run web django-admin startproject \"#{@env[:base][:app_name][:value]}\" . &&
|
28
|
+
sudo chown -R $USER:$USER ."
|
28
29
|
- |
|
29
30
|
run "sudo docker-compose run web django-admin startproject \"#{@env[:base][:app_name][:value]}\" . &&
|
30
31
|
sudo chown -R $USER:$USER ."
|
31
|
-
-
|
32
|
+
- template 'stage_two/settings.py', "./#{@env[:base][:app_name][:value]}/settings.pycd cd", @env
|
32
33
|
- |
|
33
34
|
run "sudo chown -R $USER:$USER . &&
|
34
35
|
sudo docker-compose build &&
|
File without changes
|
@@ -7,7 +7,7 @@ describe 'okonomi roll_your_own' do
|
|
7
7
|
|
8
8
|
Given(:rollon) {
|
9
9
|
stub_adventure
|
10
|
-
stub_overrides
|
10
|
+
# stub_overrides
|
11
11
|
stub_run_actions
|
12
12
|
cli.rollon
|
13
13
|
}
|
@@ -19,15 +19,20 @@ describe 'okonomi roll_your_own' do
|
|
19
19
|
# quiet { rollon }
|
20
20
|
}
|
21
21
|
|
22
|
+
describe 'testing cli ask and say' do
|
23
|
+
Given(:adventures) { %w[] }
|
24
|
+
|
25
|
+
Then { }
|
26
|
+
end
|
22
27
|
describe 'must generate' do
|
23
28
|
describe 'templates with stage one' do
|
24
|
-
|
29
|
+
Then { assert_file 'mise/stacks/my_story/templates/stage_one/.keep' }
|
25
30
|
end
|
26
31
|
|
27
32
|
describe 'test' do
|
28
33
|
describe 'with stage one' do
|
29
34
|
describe 'with stage dummy' do
|
30
|
-
|
35
|
+
Then { assert_file 'mise/stacks/my_story/test/stage_one/stage_dummy/.keep' }
|
31
36
|
end
|
32
37
|
end
|
33
38
|
end
|
data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/{fatsufodo.yml → sashimi.yml}
RENAMED
File without changes
|
data/lib/roro/version.rb
CHANGED
data/roro.gemspec
CHANGED
@@ -32,8 +32,6 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_dependency 'rake', '~> 13.0', '>= 13.0.1'
|
33
33
|
spec.add_dependency 'sshkit', '~> 1.21'
|
34
34
|
spec.add_dependency 'thor', '~> 1.0', '>= 1.0.1'
|
35
|
-
# spec.add_dependency 'byebug'
|
36
|
-
# spec.add_dependency 'require_all'
|
37
35
|
spec.add_development_dependency 'bundler', '~> 2.1', '>= 2.1.4'
|
38
36
|
spec.add_development_dependency 'byebug', '~> 11.1', '>= 11.1.3'
|
39
37
|
spec.add_development_dependency 'climate_control'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schadenfred
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem-release
|
@@ -286,7 +286,7 @@ files:
|
|
286
286
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_one/Dockerfile.tt
|
287
287
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_one/docker-compose.yml.tt
|
288
288
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_one/requirements.txt.tt
|
289
|
-
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_two/settings.py
|
289
|
+
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/templates/stage_two/settings.py.tt
|
290
290
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_one/dummy/.keep
|
291
291
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_one/stage_one_test.rb
|
292
292
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_two/dummy/.keep
|
@@ -358,7 +358,7 @@ files:
|
|
358
358
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/omakase/stories/wordpress/test/stage_one/stage_dummy/.keep
|
359
359
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/omakase/stories/wordpress/test/stage_one/stage_test.rb
|
360
360
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/omakase/stories/wordpress/wordpress.yml
|
361
|
-
- lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/
|
361
|
+
- lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/sashimi.yml
|
362
362
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/django.yml
|
363
363
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/templates/stage_one/Dockerfile.tt
|
364
364
|
- lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/templates/stage_one/docker-compose.yml.tt
|
@@ -532,7 +532,6 @@ files:
|
|
532
532
|
- mise/env/development.env.enc
|
533
533
|
- mise/env/production.env.enc
|
534
534
|
- mise/mise.roro
|
535
|
-
- process.yml
|
536
535
|
- roro.gemspec
|
537
536
|
- tmp/.keep
|
538
537
|
- vendor/bundle/.keep
|
@@ -557,7 +556,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
557
556
|
- !ruby/object:Gem::Version
|
558
557
|
version: '0'
|
559
558
|
requirements: []
|
560
|
-
rubygems_version: 3.2.
|
559
|
+
rubygems_version: 3.2.15
|
561
560
|
signing_key:
|
562
561
|
specification_version: 4
|
563
562
|
summary: Containerization framwork for Ruby on Rails applications.
|
data/process.yml
DELETED
@@ -1,401 +0,0 @@
|
|
1
|
-
version: 2
|
2
|
-
jobs:
|
3
|
-
release:
|
4
|
-
docker:
|
5
|
-
- image: cimg/ruby:2.5
|
6
|
-
steps:
|
7
|
-
- checkout
|
8
|
-
- run:
|
9
|
-
command: rake install
|
10
|
-
- run:
|
11
|
-
command: |
|
12
|
-
export CI_KEY="Bx2LCiZo7Gedfz1OV9vh3w=="
|
13
|
-
roro generate:exposed ci
|
14
|
-
test-against-ruby-2.6:
|
15
|
-
docker:
|
16
|
-
- image: cimg/ruby:2.6
|
17
|
-
steps:
|
18
|
-
- checkout
|
19
|
-
- run:
|
20
|
-
command: gem install bundler
|
21
|
-
- run:
|
22
|
-
command: bundle
|
23
|
-
- run:
|
24
|
-
command: bundle exec rake test
|
25
|
-
? |-
|
26
|
-
test-rollon-1
|
27
|
-
1-linux
|
28
|
-
: docker:
|
29
|
-
- image: cimg/ruby:2.7
|
30
|
-
steps:
|
31
|
-
- checkout
|
32
|
-
- setup_remote_docker:
|
33
|
-
version: 19.03.12
|
34
|
-
- run:
|
35
|
-
command: |
|
36
|
-
rake install &&
|
37
|
-
printf "1
|
38
|
-
1\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny$var\n" | roro rollon
|
39
|
-
- run:
|
40
|
-
command: echo 'success'
|
41
|
-
? |-
|
42
|
-
test-rollon-3
|
43
|
-
1-linux
|
44
|
-
: docker:
|
45
|
-
- image: cimg/ruby:2.7
|
46
|
-
steps:
|
47
|
-
- checkout
|
48
|
-
- setup_remote_docker:
|
49
|
-
version: 19.03.12
|
50
|
-
- run:
|
51
|
-
command: |
|
52
|
-
rake install &&
|
53
|
-
printf "3
|
54
|
-
1\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny$var\n" | roro rollon
|
55
|
-
- run:
|
56
|
-
command: echo 'success'
|
57
|
-
test-against-ruby-2.5:
|
58
|
-
docker:
|
59
|
-
- image: cimg/ruby:2.5
|
60
|
-
steps:
|
61
|
-
- checkout
|
62
|
-
- run:
|
63
|
-
command: gem install bundler
|
64
|
-
- run:
|
65
|
-
command: bundle
|
66
|
-
- run:
|
67
|
-
command: bundle exec rake test
|
68
|
-
? |-
|
69
|
-
test-rollon-2
|
70
|
-
1-linux
|
71
|
-
: docker:
|
72
|
-
- image: cimg/ruby:2.7
|
73
|
-
steps:
|
74
|
-
- checkout
|
75
|
-
- setup_remote_docker:
|
76
|
-
version: 19.03.12
|
77
|
-
- run:
|
78
|
-
command: |
|
79
|
-
rake install &&
|
80
|
-
printf "2
|
81
|
-
1\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny$var\n" | roro rollon
|
82
|
-
- run:
|
83
|
-
command: echo 'success'
|
84
|
-
? |-
|
85
|
-
test-rollon-3
|
86
|
-
2-linux
|
87
|
-
: docker:
|
88
|
-
- image: cimg/ruby:2.7
|
89
|
-
steps:
|
90
|
-
- checkout
|
91
|
-
- setup_remote_docker:
|
92
|
-
version: 19.03.12
|
93
|
-
- run:
|
94
|
-
command: |
|
95
|
-
rake install &&
|
96
|
-
printf "3
|
97
|
-
2\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny$var\n" | roro rollon
|
98
|
-
- run:
|
99
|
-
command: echo 'success'
|
100
|
-
test-against-ruby-2.7:
|
101
|
-
docker:
|
102
|
-
- image: cimg/ruby:2.7
|
103
|
-
steps:
|
104
|
-
- checkout
|
105
|
-
- run:
|
106
|
-
command: gem install bundler
|
107
|
-
- run:
|
108
|
-
command: bundle
|
109
|
-
- run:
|
110
|
-
command: bundle exec rake test
|
111
|
-
? |-
|
112
|
-
test-rollon-1
|
113
|
-
4-linux
|
114
|
-
: docker:
|
115
|
-
- image: cimg/ruby:2.7
|
116
|
-
steps:
|
117
|
-
- checkout
|
118
|
-
- setup_remote_docker:
|
119
|
-
version: 19.03.12
|
120
|
-
- run:
|
121
|
-
command: |
|
122
|
-
rake install &&
|
123
|
-
printf "1
|
124
|
-
4\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny$var\n" | roro rollon
|
125
|
-
- run:
|
126
|
-
command: echo 'success'
|
127
|
-
? |-
|
128
|
-
test-rollon-1
|
129
|
-
3-linux
|
130
|
-
: docker:
|
131
|
-
- image: cimg/ruby:2.7
|
132
|
-
steps:
|
133
|
-
- checkout
|
134
|
-
- setup_remote_docker:
|
135
|
-
version: 19.03.12
|
136
|
-
- run:
|
137
|
-
command: |
|
138
|
-
rake install &&
|
139
|
-
printf "1
|
140
|
-
3\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny$var\n" | roro rollon
|
141
|
-
- run:
|
142
|
-
command: echo 'success'
|
143
|
-
build:
|
144
|
-
docker:
|
145
|
-
- image: cimg/ruby:2.5
|
146
|
-
steps:
|
147
|
-
- checkout
|
148
|
-
? |-
|
149
|
-
test-rollon-1
|
150
|
-
2-linux
|
151
|
-
: docker:
|
152
|
-
- image: cimg/ruby:2.7
|
153
|
-
steps:
|
154
|
-
- checkout
|
155
|
-
- setup_remote_docker:
|
156
|
-
version: 19.03.12
|
157
|
-
- run:
|
158
|
-
command: |
|
159
|
-
rake install &&
|
160
|
-
printf "1
|
161
|
-
2\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny$var\n" | roro rollon
|
162
|
-
- run:
|
163
|
-
command: echo 'success'
|
164
|
-
test-against-ruby-3.0:
|
165
|
-
docker:
|
166
|
-
- image: cimg/ruby:3.0
|
167
|
-
steps:
|
168
|
-
- checkout
|
169
|
-
- run:
|
170
|
-
command: gem install bundler
|
171
|
-
- run:
|
172
|
-
command: bundle
|
173
|
-
- run:
|
174
|
-
command: bundle exec rake test
|
175
|
-
? |-
|
176
|
-
test-rollon-1
|
177
|
-
5-linux
|
178
|
-
: docker:
|
179
|
-
- image: cimg/ruby:2.7
|
180
|
-
steps:
|
181
|
-
- checkout
|
182
|
-
- setup_remote_docker:
|
183
|
-
version: 19.03.12
|
184
|
-
- run:
|
185
|
-
command: |
|
186
|
-
rake install &&
|
187
|
-
printf "1
|
188
|
-
5\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny\ny$var\n" | roro rollon
|
189
|
-
- run:
|
190
|
-
command: echo 'success'
|
191
|
-
workflows:
|
192
|
-
matrix-test-rollon:
|
193
|
-
jobs:
|
194
|
-
- ? |-
|
195
|
-
test-rollon-1
|
196
|
-
1-linux
|
197
|
-
: filters:
|
198
|
-
branches:
|
199
|
-
only: master
|
200
|
-
- ? |-
|
201
|
-
test-rollon-1
|
202
|
-
2-linux
|
203
|
-
: filters:
|
204
|
-
branches:
|
205
|
-
only: master
|
206
|
-
- ? |-
|
207
|
-
test-rollon-1
|
208
|
-
3-linux
|
209
|
-
: filters:
|
210
|
-
branches:
|
211
|
-
only: master
|
212
|
-
- ? |-
|
213
|
-
test-rollon-1
|
214
|
-
4-linux
|
215
|
-
: filters:
|
216
|
-
branches:
|
217
|
-
only: master
|
218
|
-
- ? |-
|
219
|
-
test-rollon-1
|
220
|
-
5-linux
|
221
|
-
: filters:
|
222
|
-
branches:
|
223
|
-
only: master
|
224
|
-
- ? |-
|
225
|
-
test-rollon-2
|
226
|
-
1-linux
|
227
|
-
: filters:
|
228
|
-
branches:
|
229
|
-
only: master
|
230
|
-
- ? |-
|
231
|
-
test-rollon-3
|
232
|
-
1-linux
|
233
|
-
: filters:
|
234
|
-
branches:
|
235
|
-
only: master
|
236
|
-
- ? |-
|
237
|
-
test-rollon-3
|
238
|
-
2-linux
|
239
|
-
: filters:
|
240
|
-
branches:
|
241
|
-
only: master
|
242
|
-
matrix-test-against-rubies:
|
243
|
-
jobs:
|
244
|
-
- test-against-ruby-2.5:
|
245
|
-
filters:
|
246
|
-
branches:
|
247
|
-
only: master
|
248
|
-
- test-against-ruby-2.6:
|
249
|
-
filters:
|
250
|
-
branches:
|
251
|
-
only: master
|
252
|
-
- test-against-ruby-2.7:
|
253
|
-
filters:
|
254
|
-
branches:
|
255
|
-
only: master
|
256
|
-
- test-against-ruby-3.0:
|
257
|
-
filters:
|
258
|
-
branches:
|
259
|
-
only: master
|
260
|
-
gem-release:
|
261
|
-
jobs:
|
262
|
-
- build
|
263
|
-
- release:
|
264
|
-
filters:
|
265
|
-
branches:
|
266
|
-
only: release
|
267
|
-
requires:
|
268
|
-
- build
|
269
|
-
version: 2
|
270
|
-
|
271
|
-
# Original config.yml file:
|
272
|
-
# version: 2.1
|
273
|
-
#
|
274
|
-
# executors:
|
275
|
-
# ruby-executor:
|
276
|
-
# docker:
|
277
|
-
# - image: cimg/ruby:2.7
|
278
|
-
# linux:
|
279
|
-
# docker:
|
280
|
-
# - image: cimg/ruby:2.7
|
281
|
-
# mac:
|
282
|
-
# macos:
|
283
|
-
# xcode: 11.4
|
284
|
-
# ruby:
|
285
|
-
# parameters:
|
286
|
-
# version:
|
287
|
-
# description: \"version tag\"
|
288
|
-
# default: \"2.5\"
|
289
|
-
# type: string
|
290
|
-
# docker:
|
291
|
-
# - image: cimg/ruby:<<parameters.version>>
|
292
|
-
#
|
293
|
-
# defaults: &defaults
|
294
|
-
# executor: ruby
|
295
|
-
#
|
296
|
-
# major_only: &major_only
|
297
|
-
# filters:
|
298
|
-
# branches:
|
299
|
-
# only: master
|
300
|
-
#
|
301
|
-
# release: &release
|
302
|
-
# filters:
|
303
|
-
# branches:
|
304
|
-
# only: release
|
305
|
-
#
|
306
|
-
# commands:
|
307
|
-
# run-test-case:
|
308
|
-
# parameters:
|
309
|
-
# answers:
|
310
|
-
# type: string
|
311
|
-
# default: \"1\\n2\"
|
312
|
-
# os:
|
313
|
-
# type: executor
|
314
|
-
# steps:
|
315
|
-
# - run: |
|
316
|
-
# rake install &&
|
317
|
-
# printf \"<< parameters.answers >>\\ny\\ny\\ny\\ny\\ny\\ny\\ny$var\\n\" | roro rollon
|
318
|
-
# - run: echo 'success'
|
319
|
-
#
|
320
|
-
# jobs:
|
321
|
-
# build:
|
322
|
-
# <<: *defaults
|
323
|
-
# steps:
|
324
|
-
# - checkout
|
325
|
-
#
|
326
|
-
# test-against-ruby:
|
327
|
-
# parameters:
|
328
|
-
# version:
|
329
|
-
# description: \"version tag\"
|
330
|
-
# default: \"3.0\"
|
331
|
-
# type: string
|
332
|
-
# executor:
|
333
|
-
# name: ruby
|
334
|
-
# version: <<parameters.version>>
|
335
|
-
# steps:
|
336
|
-
# - checkout
|
337
|
-
# - run: gem install bundler
|
338
|
-
# - run: bundle
|
339
|
-
# - run: bundle exec rake test
|
340
|
-
#
|
341
|
-
# test-rollon:
|
342
|
-
# parameters:
|
343
|
-
# answers:
|
344
|
-
# type: string
|
345
|
-
# default: \"1\\n4\"
|
346
|
-
# os:
|
347
|
-
# type: executor
|
348
|
-
# default: linux
|
349
|
-
# executor: << parameters.os >>
|
350
|
-
# steps:
|
351
|
-
# - checkout
|
352
|
-
# - setup_remote_docker:
|
353
|
-
# version: 19.03.12
|
354
|
-
# - run: |
|
355
|
-
# rake install &&
|
356
|
-
# printf \"<< parameters.answers >>\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny\\ny$var\\n\" | roro rollon
|
357
|
-
# - run: echo 'success'
|
358
|
-
#
|
359
|
-
# release:
|
360
|
-
# <<: *defaults
|
361
|
-
# steps:
|
362
|
-
# - checkout
|
363
|
-
# - run: rake install
|
364
|
-
# - run: |
|
365
|
-
# export CI_KEY=\"Bx2LCiZo7Gedfz1OV9vh3w==\"
|
366
|
-
# roro generate:exposed ci
|
367
|
-
# # - run: |
|
368
|
-
# # echo $(cat ./mise/containers/ruby_image/env/ci.env) >> $BASH_ENV
|
369
|
-
# # source $BASH_ENV
|
370
|
-
# # - run: echo $RUBYGEMS_API_KEY
|
371
|
-
# # - run: chmod +x ./.circleci/setup-gem-credentials.sh
|
372
|
-
# # - run: ./.circleci/setup-gem-credentials.sh
|
373
|
-
# # - run: chmod 0600 ./.gem/credentials
|
374
|
-
# # - run: git checkout .
|
375
|
-
# # - run: gem release
|
376
|
-
#
|
377
|
-
# workflows:
|
378
|
-
# matrix-test-rollon:
|
379
|
-
# jobs:
|
380
|
-
# - test-rollon:
|
381
|
-
# <<: *major_only
|
382
|
-
# matrix:
|
383
|
-
# parameters:
|
384
|
-
# answers: [\"1\\n1\", \"1\\n2\", \"1\\n3\", \"1\\n4\", \"1\\n5\", \"2\\n1\", \"3\\n1\", \"3\\n2\"]
|
385
|
-
# os: [linux]
|
386
|
-
#
|
387
|
-
# matrix-test-against-rubies:
|
388
|
-
# jobs:
|
389
|
-
# - test-against-ruby:
|
390
|
-
# <<: *major_only
|
391
|
-
# matrix:
|
392
|
-
# parameters:
|
393
|
-
# version: [ \"2.5\", \"2.6\", \"2.7\", \"3.0\" ]
|
394
|
-
#
|
395
|
-
# gem-release:
|
396
|
-
# jobs:
|
397
|
-
# - build
|
398
|
-
# - release:
|
399
|
-
# requires:
|
400
|
-
# - build
|
401
|
-
# <<: *release
|