aruba 1.0.0.pre.alpha.5 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +153 -28
  3. data/CONTRIBUTING.md +0 -9
  4. data/LICENSE +1 -1
  5. data/README.md +37 -30
  6. data/lib/aruba/api.rb +0 -1
  7. data/lib/aruba/api/bundler.rb +17 -2
  8. data/lib/aruba/api/commands.rb +15 -16
  9. data/lib/aruba/api/core.rb +64 -50
  10. data/lib/aruba/api/environment.rb +12 -4
  11. data/lib/aruba/api/filesystem.rb +32 -46
  12. data/lib/aruba/api/text.rb +15 -3
  13. data/lib/aruba/aruba_path.rb +23 -95
  14. data/lib/aruba/basic_configuration.rb +46 -65
  15. data/lib/aruba/basic_configuration/option.rb +2 -2
  16. data/lib/aruba/cli.rb +4 -1
  17. data/lib/aruba/config/jruby.rb +1 -1
  18. data/lib/aruba/config_wrapper.rb +17 -4
  19. data/lib/aruba/configuration.rb +29 -22
  20. data/lib/aruba/console.rb +0 -2
  21. data/lib/aruba/console/help.rb +8 -5
  22. data/lib/aruba/contracts/absolute_path.rb +3 -3
  23. data/lib/aruba/contracts/is_power_of_two.rb +2 -2
  24. data/lib/aruba/contracts/relative_path.rb +3 -3
  25. data/lib/aruba/cucumber/command.rb +93 -82
  26. data/lib/aruba/cucumber/file.rb +43 -23
  27. data/lib/aruba/cucumber/hooks.rb +4 -1
  28. data/lib/aruba/cucumber/testing_frameworks.rb +14 -12
  29. data/lib/aruba/event_bus.rb +4 -2
  30. data/lib/aruba/event_bus/name_resolver.rb +9 -8
  31. data/lib/aruba/events.rb +2 -1
  32. data/lib/aruba/hooks.rb +2 -4
  33. data/lib/aruba/in_config_wrapper.rb +8 -5
  34. data/lib/aruba/initializer.rb +9 -3
  35. data/lib/aruba/matchers/base/base_matcher.rb +2 -11
  36. data/lib/aruba/matchers/base/message_indenter.rb +1 -1
  37. data/lib/aruba/matchers/base/object_formatter.rb +0 -5
  38. data/lib/aruba/matchers/collection/include_an_object.rb +4 -4
  39. data/lib/aruba/matchers/command/be_successfully_executed.rb +3 -1
  40. data/lib/aruba/matchers/command/have_exit_status.rb +3 -1
  41. data/lib/aruba/matchers/command/have_finished_in_time.rb +3 -1
  42. data/lib/aruba/matchers/command/have_output.rb +3 -1
  43. data/lib/aruba/matchers/command/have_output_on_stderr.rb +3 -1
  44. data/lib/aruba/matchers/command/have_output_on_stdout.rb +3 -1
  45. data/lib/aruba/matchers/directory/have_sub_directory.rb +8 -3
  46. data/lib/aruba/matchers/file/have_file_size.rb +4 -2
  47. data/lib/aruba/matchers/path/have_permissions.rb +7 -4
  48. data/lib/aruba/platforms/announcer.rb +25 -11
  49. data/lib/aruba/platforms/aruba_file_creator.rb +3 -1
  50. data/lib/aruba/platforms/aruba_fixed_size_file_creator.rb +7 -2
  51. data/lib/aruba/platforms/aruba_logger.rb +10 -9
  52. data/lib/aruba/platforms/command_monitor.rb +4 -6
  53. data/lib/aruba/platforms/determine_disk_usage.rb +55 -20
  54. data/lib/aruba/platforms/filesystem_status.rb +19 -13
  55. data/lib/aruba/platforms/simple_table.rb +2 -2
  56. data/lib/aruba/platforms/unix_environment_variables.rb +9 -4
  57. data/lib/aruba/platforms/unix_platform.rb +10 -10
  58. data/lib/aruba/platforms/unix_which.rb +1 -1
  59. data/lib/aruba/platforms/windows_command_string.rb +1 -1
  60. data/lib/aruba/platforms/windows_environment_variables.rb +2 -1
  61. data/lib/aruba/platforms/windows_platform.rb +3 -3
  62. data/lib/aruba/platforms/windows_which.rb +6 -2
  63. data/lib/aruba/processes/basic_process.rb +4 -6
  64. data/lib/aruba/processes/debug_process.rb +4 -2
  65. data/lib/aruba/processes/in_process.rb +5 -3
  66. data/lib/aruba/processes/spawn_process.rb +27 -16
  67. data/lib/aruba/rspec.rb +25 -15
  68. data/lib/aruba/runtime.rb +11 -4
  69. data/lib/aruba/setup.rb +23 -10
  70. data/lib/aruba/tasks/docker_helpers.rb +3 -1
  71. data/lib/aruba/version.rb +1 -1
  72. metadata +96 -109
  73. data/.cucumberproignore +0 -3
  74. data/.document +0 -5
  75. data/.github/ISSUE_TEMPLATE.md +0 -48
  76. data/.github/PULL_REQUEST_TEMPLATE.md +0 -41
  77. data/.gitignore +0 -38
  78. data/.rspec +0 -3
  79. data/.rubocop.yml +0 -31
  80. data/.rubocop_todo.yml +0 -258
  81. data/.simplecov +0 -34
  82. data/.travis.yml +0 -73
  83. data/.yardopts +0 -11
  84. data/Dockerfile +0 -67
  85. data/Gemfile +0 -15
  86. data/Rakefile +0 -92
  87. data/TODO.md +0 -13
  88. data/appveyor.yml +0 -30
  89. data/aruba.gemspec +0 -46
  90. data/bin/console +0 -7
  91. data/bin/test +0 -9
  92. data/config/.gitignore +0 -1
  93. data/cucumber.yml +0 -6
  94. data/docker-compose.yml +0 -26
  95. data/fixtures/cli-app/.gitignore +0 -9
  96. data/fixtures/cli-app/.rspec +0 -2
  97. data/fixtures/cli-app/README.md +0 -39
  98. data/fixtures/cli-app/Rakefile +0 -1
  99. data/fixtures/cli-app/bin/aruba-test-cli +0 -6
  100. data/fixtures/cli-app/cli-app.gemspec +0 -25
  101. data/fixtures/cli-app/features/support/aruba.rb +0 -1
  102. data/fixtures/cli-app/features/support/env.rb +0 -1
  103. data/fixtures/cli-app/lib/cli/app.rb +0 -9
  104. data/fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb +0 -15
  105. data/fixtures/cli-app/lib/cli/app/version.rb +0 -5
  106. data/fixtures/cli-app/script/console +0 -14
  107. data/fixtures/cli-app/spec/spec_helper.rb +0 -7
  108. data/fixtures/cli-app/spec/support/aruba.rb +0 -1
  109. data/fixtures/copy/file.txt +0 -1
  110. data/fixtures/empty-app/.gitignore +0 -9
  111. data/fixtures/empty-app/.rspec +0 -2
  112. data/fixtures/empty-app/README.md +0 -24
  113. data/fixtures/empty-app/Rakefile +0 -1
  114. data/fixtures/empty-app/cli-app.gemspec +0 -25
  115. data/fixtures/empty-app/lib/cli/app.rb +0 -7
  116. data/fixtures/empty-app/lib/cli/app/version.rb +0 -5
  117. data/fixtures/getting-started-app/.gitignore +0 -4
  118. data/fixtures/getting-started-app/Gemfile +0 -4
  119. data/fixtures/getting-started-app/README.md +0 -3
  120. data/fixtures/getting-started-app/features/support/env.rb +0 -1
  121. data/lib/aruba/extensions/string/strip.rb +0 -25
  122. data/lib/aruba/platforms/disk_usage_calculator.rb +0 -20
@@ -1,73 +0,0 @@
1
- # Use old Ubuntu distribution to avoid JRuby issues
2
- dist: trusty
3
- language: ruby
4
- script: bundle exec rake test
5
- before_install:
6
- - gem install bundler -v '< 2'
7
- bundler_args: --without debug
8
-
9
- jobs:
10
- include:
11
- - rvm: ruby-head
12
- stage: test
13
- os: linux
14
- - rvm: ruby-head
15
- os: osx
16
- - rvm: 2.6.3
17
- os: linux
18
- - rvm: 2.6.3
19
- os: osx
20
- - rvm: 2.5.5
21
- os: linux
22
- - rvm: 2.5.5
23
- os: osx
24
- - rvm: 2.4.6
25
- os: linux
26
- - rvm: 2.4.6
27
- os: osx
28
- - rvm: 2.3.8
29
- os: linux
30
- - rvm: 2.3.8
31
- os: osx
32
- - rvm: 2.3.0
33
- os: linux
34
- - rvm: jruby-9.1
35
- os: linux
36
- - rvm: jruby-9.2.8.0
37
- os: linux
38
- - rvm: jruby-9.2.8.0
39
- os: osx
40
- env: JAVA_OPTS="
41
- --add-opens java.base/java.io=ALL-UNNAMED
42
- --add-opens java.base/java.lang=ALL-UNNAMED
43
- --add-opens java.base/java.util=ALL-UNNAMED
44
- --add-opens java.base/java.lang.reflect=ALL-UNNAMED
45
- --add-opens java.base/java.security.cert=ALL-UNNAMED
46
- --add-opens java.base/java.security=ALL-UNNAMED
47
- --add-opens java.base/javax.crypto=ALL-UNNAMED
48
- --add-opens java.base/sun.nio.ch=ALL-UNNAMED
49
- --add-opens java.base/java.nio.channels.spi=ALL-UNNAMED
50
- --illegal-access=warn"
51
- script: bundle exec rake spec
52
- - stage: lint
53
- script: bundle exec rake lint
54
- rvm: 2.6.3
55
- os: linux
56
- allow_failures:
57
- - rvm: ruby-head
58
- fast_finish: true
59
-
60
- branches:
61
- only:
62
- - master
63
- - still
64
-
65
- # notifications:
66
- # slack: cucumberbdd:oQFVhzsx4R94KWmjlejAJYnM
67
- env:
68
- global:
69
- - secure: l8uznA5K4K9mZ1krmP3lTMD8WcJ32qGxFOR3jubKHcOBSLB4xSzU2aIqjyJdO+rLzebkwamhJc8pGSIWOUDQYvFiX7splK+uEkbBJ5huAhXtLF4Qgl86bCWbEXYzN7rvn0DQfpJAovyFMNRMnfo70XhwqWzFsaYa7Z0YbqYsJE4=
70
- # Travis by default also have "-Dcext.enabled=false" set in
71
- # JRUBY_OPTS, but JRuby 9 does not support C extensions at all
72
- # so it issues warning that will mess up the stderr checks.
73
- - JRUBY_OPTS="--dev --debug"
data/.yardopts DELETED
@@ -1,11 +0,0 @@
1
- --output doc/yard
2
- --exclude features/
3
- --exclude bin/bootstrap
4
- --exclude bin/test
5
- --exclude license
6
- --verbose
7
- --markup-provider kramdown
8
- --markup markdown
9
- -
10
- LICENSE
11
- README.md
data/Dockerfile DELETED
@@ -1,67 +0,0 @@
1
- FROM ubuntu:14.04
2
- MAINTAINER Aruba Maintainers <cukes-devs@googlegroups.com>
3
-
4
- # Packages needed to install RVM and run Bundler gem commands
5
- RUN apt-get update -qq \
6
- && apt-get -y install ca-certificates curl git-core --no-install-recommends \
7
- && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin
8
-
9
- # Create guest user early (before rvm) so uid:gid are 1000:000
10
- RUN useradd -m -s /bin/bash guest
11
-
12
- # Temporarily install RVM as root - just for requirements
13
- RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
14
- && curl -L get.rvm.io | bash -s stable \
15
- && bash -l -c 'rvm requirements 2.2.1' \
16
- && bash -l -c 'echo yes | rvm implode' \
17
-
18
- # Fix locale
19
- ENV DEBIAN_FRONTEND noninteractive
20
- RUN dpkg-reconfigure locales && locale-gen en_US.UTF-8 && /usr/sbin/update-locale LANG=en_US.UTF-8 \
21
- && echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
22
- ENV LC_ALL C.UTF-8
23
- ENV LANG C.UTF-8
24
- ENV LANGUAGE C.UTF-8
25
-
26
- # Zsh (just for the sake of a handful of Cucumber scenarios)
27
- RUN apt-get update -qq \
28
- && apt-get -y install zsh --no-install-recommends \
29
- && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin
30
-
31
- # Python (just for the sake of a handful of Cucumber scenarios)
32
- RUN apt-get update -qq \
33
- && apt-get -y install python --no-install-recommends \
34
- && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin
35
-
36
- # Java (for javac - also for just a few Cucumber scenarios)
37
- RUN apt-get update -qq \
38
- && apt-get -y install openjdk-7-jdk --no-install-recommends \
39
- && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin
40
-
41
- # Cache needed gems - for faster test reruns
42
- ADD Gemfile Gemfile.lock aruba.gemspec /home/guest/cache/aruba/
43
- ADD lib/aruba/version.rb /home/guest/cache/aruba/lib/aruba/version.rb
44
- RUN chown -R guest:guest /home/guest/cache
45
-
46
- USER guest
47
- ENV HOME /home/guest
48
- WORKDIR /home/guest
49
-
50
- # Install RVM as guest
51
- RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
52
- && /bin/bash -l -c "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" \
53
- && curl -L get.rvm.io | bash -s stable \
54
- && /bin/bash -l -c "rvm install 2.3.0 && rvm cleanup all" \
55
- && /bin/bash -l -c "gem install bundler --no-ri --no-rdoc" \
56
- && echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc \
57
- && echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.zshrc
58
-
59
- # Download and install aruba + dependencies
60
- WORKDIR /home/guest/cache/aruba
61
- RUN bash -l -c "bundle install"
62
-
63
- # Default working directory
64
- RUN mkdir -p /home/guest/aruba
65
- WORKDIR /home/guest/aruba
66
-
67
- CMD ["bundle exec rake test"]
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Use dependencies from gemspec
4
- gemspec
5
-
6
- # Load local Gemfile
7
- load File.expand_path('Gemfile.local', __dir__) if File.file? File.expand_path('Gemfile.local', __dir__)
8
-
9
- # Debug aruba
10
- group :debug do
11
- unless RUBY_PLATFORM.include?('java')
12
- gem 'byebug', '~> 11.0'
13
- gem 'pry-byebug', '~> 3.4'
14
- end
15
- end
data/Rakefile DELETED
@@ -1,92 +0,0 @@
1
- $LOAD_PATH << File.expand_path(__dir__)
2
-
3
- require 'aruba/tasks/docker_helpers'
4
- require 'aruba/platform'
5
-
6
- require 'bundler'
7
- Bundler.setup
8
-
9
- task default: %w(spec cucumber cucumber:wip lint)
10
-
11
- desc 'Run all linters.'
12
- task lint: %w(lint:travis lint:coding_guidelines lint:licenses)
13
-
14
- desc 'Run the whole test suite.'
15
- task test: %w(spec cucumber cucumber:wip)
16
-
17
- require 'cucumber/rake/task'
18
- require 'rspec/core/rake_task'
19
-
20
- Cucumber::Rake::Task.new do |t|
21
- t.cucumber_opts = %w{--format progress}
22
- end
23
-
24
- Cucumber::Rake::Task.new('cucumber:wip', 'Run Cucumber features '\
25
- 'which are "WORK IN PROGRESS" and '\
26
- 'are allowed to fail') do |t|
27
- t.cucumber_opts = %w{--format progress}
28
- t.profile = 'wip'
29
- end
30
-
31
- RSpec::Core::RakeTask.new
32
-
33
- namespace :lint do
34
- desc 'Lint our .travis.yml'
35
- task :travis do
36
- begin
37
- require 'travis/yaml'
38
-
39
- puts 'Linting .travis.yml ... No output is good!'
40
- Travis::Yaml.parse! File.read('.travis.yml')
41
- rescue LoadError => e
42
- $stderr.puts "You ruby is not supported for linting the .travis.yml: #{e.message}"
43
- end
44
- end
45
-
46
- desc 'Lint our code with "rubocop"'
47
- task :coding_guidelines do
48
- sh 'bundle exec rubocop --fail-level E'
49
- end
50
-
51
- desc 'Check for relevant licenses in project'
52
- task :licenses do
53
- sh 'bundle exec license_finder'
54
- end
55
-
56
- require 'yard-junk/rake'
57
- YardJunk::Rake.define_task
58
- end
59
-
60
- Bundler::GemHelper.install_tasks
61
-
62
- namespace :docker do
63
- desc 'Build docker image'
64
- task :build, :cache, :version do |_, args|
65
- args.with_defaults(version: 'latest')
66
- args.with_defaults(cache: true)
67
-
68
- docker_compose_file = Aruba::DockerComposeFile.new(File.expand_path('docker-compose.yml', __dir__))
69
- docker_run_instance = Aruba::DockerRunInstance.new(docker_compose_file, :base)
70
-
71
- builder = Aruba::DockerBuildCommandLineBuilder.new(
72
- docker_run_instance,
73
- cache: args[:cache],
74
- version: args[:version]
75
- )
76
-
77
- sh builder.to_cli
78
- end
79
-
80
- desc 'Run docker container'
81
- task :run, :command do |_, args|
82
- docker_compose_file = Aruba::DockerComposeFile.new(File.expand_path('docker-compose.yml', __dir__))
83
- docker_run_instance = Aruba::DockerRunInstance.new(docker_compose_file, :base)
84
-
85
- builder = Aruba::DockerRunCommandLineBuilder.new(
86
- docker_run_instance,
87
- command: args[:command] || docker_run_instance.command
88
- )
89
-
90
- sh builder.to_cli
91
- end
92
- end
data/TODO.md DELETED
@@ -1,13 +0,0 @@
1
- * Replace check filesystem permissons through a better rspec matcher
2
- * Improve documentation for matchers in file
3
- * Cleanup stdout/stderr in spawn process:
4
- It should be enough to use 'open(@process.io.stdout).read' and 'open(@process.io.stderr).read'. There's no need to rewind them.
5
- * Ensure that all processes are kill after cucumber is finished
6
- * Add variation of check and stop of command if output contains
7
- Add something like `(?: of last command)?`. If this is true, just check the last command.
8
- * Use aruba.config.exit_timeout everywhere
9
- * Fix problem with long running commands in background:
10
-
11
- Since we need to stop all commands to access the status of the last command
12
- stopped, we have problems with long running commands
13
-
@@ -1,30 +0,0 @@
1
- version: "{build}"
2
-
3
- # This will build all PRs targeting matching branches.
4
- # Without this, each PR builds twice -- once for the PR branch HEAD,
5
- # and once for the merge commit that github creates for each mergeable PR.
6
- branches:
7
- only:
8
- - master
9
- - still
10
-
11
- # Disable normal Windows builds in favor of our test script.
12
- build: off
13
-
14
- install:
15
- - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
16
- - ruby --version
17
- - gem --version
18
- - bundler --version
19
- - bundle install
20
- - cinst ansicon
21
-
22
- test_script:
23
- - bundle exec rake spec --trace
24
-
25
- environment:
26
- matrix:
27
- - ruby_version: '23'
28
- - ruby_version: '24'
29
- - ruby_version: '25'
30
- - ruby_version: '26'
@@ -1,46 +0,0 @@
1
- lib = ::File.expand_path('../lib', __FILE__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require 'aruba/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'aruba'
7
- spec.version = Aruba::VERSION
8
- spec.author = 'Aslak Hellesøy, Matt Wynne and other Aruba Contributors'
9
- spec.description = 'Extension for popular TDD and BDD frameworks like "Cucumber", "RSpec" and "Minitest",
10
- to make testing commandline applications meaningful, easy and fun.'
11
- spec.summary = "aruba-#{spec.version}"
12
- spec.license = 'MIT'
13
- spec.email = 'cukes@googlegroups.com'
14
- spec.homepage = 'https://github.com/cucumber/aruba'
15
-
16
- spec.add_runtime_dependency 'childprocess', '~> 3.0'
17
- spec.add_runtime_dependency 'contracts', '~> 0.13'
18
- spec.add_runtime_dependency 'cucumber', ['>= 2.4', '< 4.0']
19
- spec.add_runtime_dependency 'ffi', '~> 1.9'
20
- spec.add_runtime_dependency 'rspec-expectations', '~> 3.4'
21
- spec.add_runtime_dependency 'thor', '~> 0.19'
22
-
23
- spec.add_development_dependency 'json', '~> 2.1'
24
- spec.add_development_dependency 'license_finder', '~> 5.3'
25
- spec.add_development_dependency 'minitest', '~> 5.10'
26
- spec.add_development_dependency 'pry-doc', '~> 1.0.0'
27
- spec.add_development_dependency 'rake', '~> 12.3'
28
- spec.add_development_dependency 'rspec', '~> 3.6'
29
- spec.add_development_dependency 'rubocop', '~> 0.69.0'
30
- spec.add_development_dependency 'rubocop-performance', '~> 1.1'
31
- spec.add_development_dependency 'simplecov', '~> 0.15'
32
- spec.add_development_dependency 'travis-yaml', '~> 0.2'
33
- spec.add_development_dependency 'yard-junk', '~> 0.0.7'
34
-
35
- spec.rubygems_version = '>= 1.6.1'
36
- spec.required_ruby_version = '>= 2.3'
37
-
38
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
39
- f.match(%r{^(test|spec|features)/})
40
- end
41
-
42
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
43
- spec.rdoc_options = ['--charset=UTF-8']
44
- spec.bindir = 'exe'
45
- spec.require_paths = ['lib']
46
- end
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
4
-
5
- require 'aruba/console'
6
-
7
- Aruba::Console.new.start
data/bin/test DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- : ${RUN_IN_DOCKER:='0'}
4
-
5
- if [ "$RUN_IN_DOCKER" == '1' ]; then
6
- bundle exec rake "docker:run[$*]"
7
- else
8
- bundle exec rake test $*
9
- fi
@@ -1 +0,0 @@
1
- aruba-rvm.yml
@@ -1,6 +0,0 @@
1
- <%
2
- std_opts = "--format pretty --color --exclude features/fixtures --require features --tags ~@unsupported-on"
3
- ignore_opts = '--tags ~@ignore'
4
- %>
5
- default: <%= std_opts %> --tags ~@wip <%= ignore_opts %>
6
- wip: <%= std_opts %> --wip --tags @wip:3 <%= ignore_opts %>
@@ -1,26 +0,0 @@
1
- # To build the base image (official Aruba base for this), run:
2
- #
3
- # $ docker-compose build base
4
- #
5
- # To run the tests, run:
6
- #
7
- # $ docker-compose run tests
8
- #
9
-
10
- version: '2'
11
- services:
12
- base:
13
- image: 'cucumber/aruba'
14
- container_name: 'cucumber-aruba-1'
15
- build:
16
- context: .
17
- dockerfile: Dockerfile
18
- args:
19
- http_proxy: "${http_proxy}"
20
- https_proxy: "${https_proxy}"
21
- HTTP_PROXY: "${HTTP_PROXY}"
22
- HTTPS_PROXY: "${HTTPS_PROXY}"
23
- working_dir: /home/guest/aruba
24
- command: /bin/bash -l -c "bundle exec rake test"
25
- volumes:
26
- - .:/home/guest/aruba
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
@@ -1,39 +0,0 @@
1
- # Simple Cli App
2
-
3
- This is a simple test cli app
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'cli-app'
11
- ```
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install cli-app
20
-
21
- ## Usage
22
-
23
- Place files in `lib/cli/app/`. They are loaded automatically. If you need a
24
- specific load order, use `require` in your files.
25
-
26
- ### CLI
27
-
28
- ```
29
- cli
30
- ```
31
-
32
- ### Library
33
-
34
- You can use `script/console` to load your library.
35
-
36
- ### Fixture
37
-
38
- This fixture includes files for `cucumber`- and `rspec`-integration.
39
-