ploy 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ploy/command/publish.rb +14 -5
- 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: 1827c399ad8d0c344fbe2764bdbbcde0478fad6d
|
4
|
+
data.tar.gz: 5b0b3575121ebd78cfd2123655dc9b1c0397a96c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ec20eab07838d117150bb71824ca3a92ed4b7dec8dc2a5b08adbffdcb0f0c333a6cb66dcd4a633beb78e91793862d83a40fdbbe5e71b0e3e5b84151f775ae13
|
7
|
+
data.tar.gz: 310c06af06a48e456d3653b8c46724ec95ba7ede32b422cd21e20072261c4ccc24b166298f6b4ddec54f21e664a469ac07fa7a8355d90168badddae8d3c918a6
|
data/lib/ploy/command/publish.rb
CHANGED
@@ -5,11 +5,20 @@ module Ploy
|
|
5
5
|
module Command
|
6
6
|
class Publish < Base
|
7
7
|
def run(argv)
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
if not is_pull_request_build then
|
9
|
+
res = Ploy::Publisher.new(argv.shift || '.ploy-publisher.yml').publish
|
10
|
+
puts "ploy publish (#{res.deploy_name} #{res.branch} #{res.version}) ok"
|
11
|
+
puts "debug: git rev-parse: #{`git rev-parse HEAD`.chomp}"
|
12
|
+
puts "debug: git symbolic-ref: #{`git symbolic-ref --short -q HEAD`.chomp}"
|
13
|
+
return true
|
14
|
+
else
|
15
|
+
puts "skipping publish; this is a PR build"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def is_pull_request_build()
|
20
|
+
prenv = ENV['TRAVIS_PULL_REQUEST']
|
21
|
+
return prenv && (prenv != 'false')
|
13
22
|
end
|
14
23
|
|
15
24
|
def help
|