testcube 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/testcube/build_env.rb +5 -0
- data/lib/testcube/version.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: f689b3808da322ea5b49372b875110972b8bd54a
|
4
|
+
data.tar.gz: 817a040cf3b6a94705e2a118e0dcd3eca1928f25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cff73c0554625493cc2377656cf2d6f1e324e8273c86933911a8468c38bd07b38b16ad2633bbb217bfbbbc22b91ca5e9d070fbccceadea50960239ee1cca133a
|
7
|
+
data.tar.gz: f270998d402517a29cc23fa435eb14ad8faa17f2b0588dcf980c96346684d4761dcca86b20a1e070bd1da096fe46aecf0e26668c9de767a8ae053b184b6dac7e
|
data/lib/testcube/build_env.rb
CHANGED
@@ -6,6 +6,7 @@ module Testcube
|
|
6
6
|
# TODO could also get some of this data from github api
|
7
7
|
{
|
8
8
|
branch: branch,
|
9
|
+
pr: pr,
|
9
10
|
build_url: build_url,
|
10
11
|
head: parse_from_git('HEAD'),
|
11
12
|
merge_base: parse_from_git(merge_base)
|
@@ -17,6 +18,10 @@ module Testcube
|
|
17
18
|
ENV['BUILDKITE_BRANCH'] || git('rev-parse --abbrev-ref HEAD')
|
18
19
|
end
|
19
20
|
|
21
|
+
def self.pr
|
22
|
+
ENV['BUILDKITE_PULL_REQUEST']
|
23
|
+
end
|
24
|
+
|
20
25
|
def self.build_url
|
21
26
|
ENV['BUILDKITE_BUILD_URL']
|
22
27
|
end
|
data/lib/testcube/version.rb
CHANGED