bait 0.5.9 → 0.5.10
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/.bait/{bire.yml → config.yml} +0 -0
- data/.gitignore +1 -0
- data/Gemfile.lock +3 -3
- data/README.md +5 -1
- data/VERSION +1 -1
- data/lib/bait/build.rb +1 -1
- data/lib/bait/cli.rb +12 -12
- data/spec/lib/bait/build_spec.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba4a454147e48ef95a51f3519a4a8ca5b0e6f0e6
|
|
4
|
+
data.tar.gz: 25d9089723006cd240d8c87b1b3f13b9462d4960
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3513f74238174f6c445578e645722fa3880fc5769ef24405a4ba6cee14e6e2292f7737c90b628dd662913a2fcd675ec98b4f7cd6519629a642055451b0d930da
|
|
7
|
+
data.tar.gz: f23bda046a4872d7eb4b2b621e28e514bebc7c72bb5cdc3ceaa8c0b98ebd23c385f707a049386fb43e0ded67e239ad5a85c08e7710588688f781bc97f99be65c
|
|
File without changes
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bait (0.5.
|
|
4
|
+
bait (0.5.10)
|
|
5
5
|
git
|
|
6
6
|
haml
|
|
7
7
|
moneta
|
|
@@ -37,7 +37,7 @@ GEM
|
|
|
37
37
|
multi_json (~> 1.0)
|
|
38
38
|
ffi (1.9.0)
|
|
39
39
|
formatador (0.2.4)
|
|
40
|
-
git (1.2.
|
|
40
|
+
git (1.2.6)
|
|
41
41
|
guard (1.8.1)
|
|
42
42
|
formatador (>= 0.2.4)
|
|
43
43
|
listen (>= 1.0.0)
|
|
@@ -49,7 +49,7 @@ GEM
|
|
|
49
49
|
rspec (~> 2.13)
|
|
50
50
|
haml (4.0.3)
|
|
51
51
|
tilt
|
|
52
|
-
i18n (0.6.
|
|
52
|
+
i18n (0.6.5)
|
|
53
53
|
listen (1.2.2)
|
|
54
54
|
rb-fsevent (>= 0.9.3)
|
|
55
55
|
rb-inotify (>= 0.9)
|
data/README.md
CHANGED
|
@@ -2,7 +2,6 @@ Bait
|
|
|
2
2
|
====
|
|
3
3
|
|
|
4
4
|
executable is `bait`, standing for Build And Integration Tester
|
|
5
|
-
I'm conflicted about the name, another is artci: Application-Readiness-Test-based Continuous Integration
|
|
6
5
|
|
|
7
6
|
The most important thing to know about this project is this:
|
|
8
7
|
|
|
@@ -38,6 +37,11 @@ You can set your Github to notify the server on that port.
|
|
|
38
37
|
|
|
39
38
|
You may also test manually by inputting a clone URL within the UI
|
|
40
39
|
|
|
40
|
+
# Caution
|
|
41
|
+
|
|
42
|
+
* There is no security setup at this time
|
|
43
|
+
* Bait is currently a WIP and should be considered experimental software
|
|
44
|
+
|
|
41
45
|
# Architectural Overview
|
|
42
46
|
|
|
43
47
|
```
|
data/VERSION
CHANGED
data/lib/bait/build.rb
CHANGED
data/lib/bait/cli.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Bait
|
|
|
10
10
|
|
|
11
11
|
##
|
|
12
12
|
# Start the server
|
|
13
|
-
def self.server
|
|
13
|
+
def self.server username=false, password=false
|
|
14
14
|
puts "** Bait/#{Bait::VERSION} booting up in #{Bait.env} environment"
|
|
15
15
|
if Bait.env == "production" && Bait.assets.missing?
|
|
16
16
|
Bait.assets.compile!
|
|
@@ -20,7 +20,7 @@ module Bait
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
##
|
|
23
|
-
# Create .bait/ and
|
|
23
|
+
# Create .bait/ and config.yml and example .bait/test.sh
|
|
24
24
|
# I do not seek to read your mind, instead I'd prefer that
|
|
25
25
|
# you contribute Scripts for different Contexts/Technologies
|
|
26
26
|
def self.init
|
|
@@ -40,12 +40,12 @@ module Bait
|
|
|
40
40
|
File.chmod(0744, script)
|
|
41
41
|
puts "Created executable script #{script}."
|
|
42
42
|
name = File.basename(script)
|
|
43
|
-
|
|
44
|
-
File.open(
|
|
43
|
+
config_file = File.join(bait_dir, 'config.yml')
|
|
44
|
+
File.open(config_file, "w") do |f|
|
|
45
45
|
f.puts "---"
|
|
46
46
|
f.puts "- #{name}"
|
|
47
47
|
end
|
|
48
|
-
puts "Setup one phase in #{
|
|
48
|
+
puts "Setup one phase in #{config_file} pointing to #{name}."
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
@@ -53,12 +53,12 @@ module Bait
|
|
|
53
53
|
# Run a defined phase
|
|
54
54
|
def self.test name=nil
|
|
55
55
|
dir = Dir.pwd, ".bait"
|
|
56
|
-
|
|
57
|
-
if File.exists?
|
|
56
|
+
config_file = File.join(dir, "config.yml")
|
|
57
|
+
if File.exists? config_file
|
|
58
58
|
require 'yaml'
|
|
59
|
-
scripts = YAML.load_file(
|
|
59
|
+
scripts = YAML.load_file(config_file)
|
|
60
60
|
if scripts.empty?
|
|
61
|
-
puts "Define your scripts in #{
|
|
61
|
+
puts "Define your scripts in #{config_file}"
|
|
62
62
|
exit 1
|
|
63
63
|
end
|
|
64
64
|
runscript = proc do |script, quit|
|
|
@@ -80,17 +80,17 @@ module Bait
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
|
-
puts "Script #{script} not defined in #{
|
|
83
|
+
puts "Script #{script} not defined in #{config_file}"
|
|
84
84
|
exit 1
|
|
85
85
|
else
|
|
86
|
-
puts "Running all defined in #{
|
|
86
|
+
puts "Running all defined in #{config_file}"
|
|
87
87
|
scripts.each do |name|
|
|
88
88
|
script = File.join(dir, name)
|
|
89
89
|
runscript.call(script, false)
|
|
90
90
|
end
|
|
91
91
|
end
|
|
92
92
|
else
|
|
93
|
-
puts "Project did not have configuration file #{
|
|
93
|
+
puts "Project did not have configuration file #{config_file}"
|
|
94
94
|
exit 1
|
|
95
95
|
end
|
|
96
96
|
end
|
data/spec/lib/bait/build_spec.rb
CHANGED
|
@@ -140,13 +140,13 @@ describe Bait::Build do
|
|
|
140
140
|
describe "#phases" do
|
|
141
141
|
before do
|
|
142
142
|
FileUtils.mkdir_p build.bait_dir
|
|
143
|
-
File.open(File.join(build.bait_dir, "
|
|
143
|
+
File.open(File.join(build.bait_dir, "config.yml"), "w") do |f|
|
|
144
144
|
f.puts "---"
|
|
145
145
|
f.puts "- foo.py"
|
|
146
146
|
f.puts "- bar.php"
|
|
147
147
|
end
|
|
148
148
|
end
|
|
149
|
-
it "outputs scripts in the order defined in
|
|
149
|
+
it "outputs scripts in the order defined in config.yml" do
|
|
150
150
|
build.phases.should eq ["foo.py", "bar.php"]
|
|
151
151
|
end
|
|
152
152
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bait
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Keyvan Fatehi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -242,8 +242,8 @@ executables:
|
|
|
242
242
|
extensions: []
|
|
243
243
|
extra_rdoc_files: []
|
|
244
244
|
files:
|
|
245
|
-
- .bait/bire.yml
|
|
246
245
|
- .bait/coffeelint.rb
|
|
246
|
+
- .bait/config.yml
|
|
247
247
|
- .bait/test.sh
|
|
248
248
|
- .gitignore
|
|
249
249
|
- Gemfile
|
|
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
315
315
|
version: '0'
|
|
316
316
|
requirements: []
|
|
317
317
|
rubyforge_project:
|
|
318
|
-
rubygems_version: 2.0.
|
|
318
|
+
rubygems_version: 2.0.3
|
|
319
319
|
signing_key:
|
|
320
320
|
specification_version: 4
|
|
321
321
|
summary: build and integration test service
|