drydocker 0.1.1 → 0.1.2
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
- data/README.md +11 -3
- data/Rakefile +13 -3
- data/VERSION +1 -1
- data/drydocker.gemspec +2 -2
- data/lib/drydocker.rb +1 -1
- data/spec/drydocker_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9810aa645bfaeb58086951c06010fb2526448aa
|
4
|
+
data.tar.gz: b2a32417a306d56c8b40167b9bd24136247b2edd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67499c017318d239abbbfd89c0666460b56bdbd6a711d6294c98dd29f686e564ea19e943a69d2fb040bc7059c271764fcdc19e2d6041e3f0c0749d8d28fea6e3
|
7
|
+
data.tar.gz: d4245594261ff0e02975d0ad941febf5c1b444c0f4e95d91f311c2b08ea72b3c07209cee7bbd3bb8a07bb99096ac10f69e4219141f74a530d27e068476b4a845
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# drydocker
|
2
2
|
|
3
|
+
[](https://app.wercker.com/project/bykey/b00d4339862ef12b880f0022b6d20b2a)
|
4
|
+
|
3
5
|
A project to provide a simple continuous testing tool.
|
4
6
|
|
5
7
|
## Installation
|
@@ -9,10 +11,16 @@ image (`docker pull silarsis/drydocker`)
|
|
9
11
|
|
10
12
|
## Usage
|
11
13
|
|
12
|
-
|
13
|
-
|
14
|
+
When installed as a gem, you will have a `drydocker` executable. Running with
|
15
|
+
`-h` will provide up-to-date usage instructions.
|
16
|
+
|
17
|
+
Basic usage is to run `drydocker` in the top level directory of the project
|
18
|
+
you're working on - by default, it will mount that directory into an image
|
19
|
+
that has enough for running rspec installed, and will run `rspec spec` every
|
20
|
+
time it sees a change in the directory.
|
14
21
|
|
15
|
-
|
22
|
+
You can specify particular images to run in and commands to run at command line
|
23
|
+
if you need to run your tests in a different way or container.
|
16
24
|
|
17
25
|
## Contributing to drydocker
|
18
26
|
|
data/Rakefile
CHANGED
@@ -11,6 +11,10 @@ rescue Bundler::BundlerError => e
|
|
11
11
|
end
|
12
12
|
require 'rake'
|
13
13
|
|
14
|
+
def version
|
15
|
+
File.exist?('VERSION') ? File.read('VERSION').strip : ''
|
16
|
+
end
|
17
|
+
|
14
18
|
require 'jeweler'
|
15
19
|
Jeweler::Tasks.new do |gem|
|
16
20
|
gem.name = 'drydocker'
|
@@ -34,8 +38,6 @@ task default: :test
|
|
34
38
|
|
35
39
|
require 'rdoc/task'
|
36
40
|
Rake::RDocTask.new do |rdoc|
|
37
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ''
|
38
|
-
|
39
41
|
rdoc.rdoc_dir = 'rdoc'
|
40
42
|
rdoc.title = "drydocker #{version}"
|
41
43
|
rdoc.rdoc_files.include('README*')
|
@@ -45,6 +47,14 @@ end
|
|
45
47
|
namespace :build do
|
46
48
|
desc 'Build the Docker container'
|
47
49
|
task :docker do
|
48
|
-
system(
|
50
|
+
system("docker build -t silarsis/drydocker:#{version} .")
|
51
|
+
system("docker tag -f silarsis/drydocker:#{version} silarsis/drydocker:latest")
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
namespace :release do
|
56
|
+
desc 'Release the Docker container'
|
57
|
+
task :docker do
|
58
|
+
system("docker push silarsis/drydocker:#{version}")
|
49
59
|
end
|
50
60
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/drydocker.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: drydocker 0.1.
|
5
|
+
# stub: drydocker 0.1.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "drydocker"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/lib/drydocker.rb
CHANGED
@@ -18,7 +18,7 @@ module Drydocker
|
|
18
18
|
|
19
19
|
def initialize(params = {})
|
20
20
|
config = Config.default_config.merge(params)
|
21
|
-
@name = config[:name] || "#{config[:image]}-test"
|
21
|
+
@name = config[:name] || "#{config[:image].sub('/', '-')}-test"
|
22
22
|
@entrypoint = config[:entrypoint]
|
23
23
|
@image = config[:image]
|
24
24
|
@command = config[:command]
|
data/spec/drydocker_spec.rb
CHANGED
@@ -6,7 +6,7 @@ module Drydocker
|
|
6
6
|
describe Config do
|
7
7
|
context 'with basic configuration' do
|
8
8
|
let(:config) { Config.new }
|
9
|
-
specify { expect(config.name).to eq 'silarsis
|
9
|
+
specify { expect(config.name).to eq 'silarsis-drydocker-test' }
|
10
10
|
specify { expect(config.entrypoint).to be_nil }
|
11
11
|
specify { expect(config.image).to eq 'silarsis/drydocker' }
|
12
12
|
specify { expect(config.command).to eq 'rspec spec' }
|