recipiez 0.7.3 → 0.8.0
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.
- data/lib/recipiez/version.rb +1 -1
- data/recipes/travis.rb +26 -0
- data/recipiez.gemspec +1 -0
- metadata +17 -4
data/lib/recipiez/version.rb
CHANGED
data/recipes/travis.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'travis/pro'
|
2
|
+
|
3
|
+
Capistrano::Configuration.instance(true).load do
|
4
|
+
|
5
|
+
namespace :ci do
|
6
|
+
desc "verification of branch build status on Travis CI"
|
7
|
+
task :verify do
|
8
|
+
begin
|
9
|
+
# strip git@github.com: and .git portion
|
10
|
+
travis_repo = repository[15..-5]
|
11
|
+
|
12
|
+
Travis::Pro.access_token = travis_key
|
13
|
+
repo = Travis::Pro::Repository.find(travis_repo)
|
14
|
+
branch_state = repo.branch(branch).state
|
15
|
+
|
16
|
+
unless branch_state == "passed"
|
17
|
+
Capistrano::CLI.ui.say "Your '#{branch}' branch has '#{branch_state}' state on CI."
|
18
|
+
Capistrano::CLI.ui.ask("Continue anyway? (y/N)") == 'y' or abort
|
19
|
+
end
|
20
|
+
rescue => e
|
21
|
+
Capistrano::CLI.ui.say e.message
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
data/recipiez.gemspec
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 8
|
8
|
+
- 0
|
9
|
+
version: 0.8.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Alastair Brunton
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2015-
|
17
|
+
date: 2015-05-20 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -29,6 +29,18 @@ dependencies:
|
|
29
29
|
version: "0"
|
30
30
|
type: :runtime
|
31
31
|
version_requirements: *id001
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: travis
|
34
|
+
prerelease: false
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 0
|
41
|
+
version: "0"
|
42
|
+
type: :runtime
|
43
|
+
version_requirements: *id002
|
32
44
|
description: Capistrano recipies for DB Syncing, Logrotate, Apache, Thin, Basecamp, Activecollab, Monit, NodeJS, Nginx
|
33
45
|
email:
|
34
46
|
- info@simplyexcited.co.uk
|
@@ -77,6 +89,7 @@ files:
|
|
77
89
|
- recipes/templates/upstart.erb
|
78
90
|
- recipes/thin.rb
|
79
91
|
- recipes/tolk.rb
|
92
|
+
- recipes/travis.rb
|
80
93
|
- recipiez.gemspec
|
81
94
|
- release_gem.sh
|
82
95
|
has_rdoc: true
|