recipiez 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Recipiez
2
- VERSION = '0.7.3'
2
+ VERSION = '0.8.0'
3
3
  end
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
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.license = 'MIT'
19
19
  s.add_dependency('tinder')
20
+ s.add_dependency('travis')
20
21
 
21
22
  s.required_rubygems_version = ">= 1.3.1"
22
23
  s.require_path = 'lib'
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 7
8
- - 3
9
- version: 0.7.3
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-03-13 00:00:00 +01:00
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